Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automating Crystal Reports 10 report designer
Message
From
12/07/2006 23:15:13
 
 
To
12/07/2006 19:42:56
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01135899
Message ID:
01135920
Views:
10
This message has been marked as the solution to the initial question of the thread.
oCR = CREATEOBJECT("CrystalRuntime.Application")
oRpt = oCR.OpenReport("C:\CRRpt\MyReport.Rpt")
oRpt.SaveAs("C:\CRRpt.NewReport.Rpt", 2048)
>I have Crystal Reports 10 installed and would like to automate the Report Designer to open an RPT file and SaveAs to a folder in Crystal Enterprise. There many registered class ids for Crystal. But which one can be used to open a report and saveas?
>
>For example:
>o=CREATEOBJECT('CrystalReports10.FileOpenDialog.1')
>o.open(0,'Open Dialog','rpt','*.rpt'...etc.)
>
>opens the dialog for users to find and open a report. what is the class id for the report designer?
>
>Thanks,
>Alan
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform