dbTalk Databases Forums  

Executing Crystal Reports thru DTS package

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Executing Crystal Reports thru DTS package in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
P S via SQLMonster.com
 
Posts: n/a

Default Executing Crystal Reports thru DTS package - 08-11-2005 , 12:01 PM






Hi,
I am new to Crystal Reports and DTS. What I need to do is schedule a Crystal
Report to run thru DTS package. Here is a sample code that I found on google
but it doesn't seem to be working.
'****************************************
' Visual Basic ActiveX Script
'****************************************
Function Main()
Dim CrystalApp
Dim CrystalReport

Set CrystalApp = New CRAXDRT.Application
Set CrystalReport = CrystalApp.OpenReport("C:\Documents and Settings\....rpt")

CRviewer1.ReportSource = CrystalReport
CRviewer1.ViewReport

Main = DTSTaskExecResult_Success
End Function

I am getting the following error:
ActiveX Component can't create object 'CRAXDRT'

Can anyone please help me with the error that I am getting?
Any help is greatly appreciated.
Thanks,

Reply With Quote
  #2  
Old   
Rick Gittins
 
Posts: n/a

Default Re: Executing Crystal Reports thru DTS package - 08-11-2005 , 03:13 PM






Is Crystal Reports installed on the server? Is it installed on your local
PC?

Rick

"P S via SQLMonster.com" <forum (AT) SQLMonster (DOT) com> wrote

Quote:
Hi,
I am new to Crystal Reports and DTS. What I need to do is schedule a
Crystal
Report to run thru DTS package. Here is a sample code that I found on
google
but it doesn't seem to be working.
'****************************************
' Visual Basic ActiveX Script
'****************************************
Function Main()
Dim CrystalApp
Dim CrystalReport

Set CrystalApp = New CRAXDRT.Application
Set CrystalReport = CrystalApp.OpenReport("C:\Documents and
Settings\....rpt")

CRviewer1.ReportSource = CrystalReport
CRviewer1.ViewReport

Main = DTSTaskExecResult_Success
End Function

I am getting the following error:
ActiveX Component can't create object 'CRAXDRT'

Can anyone please help me with the error that I am getting?
Any help is greatly appreciated.
Thanks,



Reply With Quote
  #3  
Old   
P S via SQLMonster.com
 
Posts: n/a

Default Re: Executing Crystal Reports thru DTS package - 08-12-2005 , 07:24 AM



No, Crystal Reports is not installed on the server but its installed on my PC.

Do I need to install Crystal Reports on the server? Do you think the code
looks Ok?
Appreciate your response.

ps_newbie
Thanks,

Rick Gittins wrote:
Quote:
Is Crystal Reports installed on the server? Is it installed on your local
PC?

Rick

Hi,
I am new to Crystal Reports and DTS. What I need to do is schedule a
[quoted text clipped - 25 lines]
Any help is greatly appreciated.
Thanks,

--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums...r-dts/200508/1


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.