Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What am I doing wrong
Message
From
25/09/2003 11:40:30
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Crystal Reports
Title:
What am I doing wrong
Miscellaneous
Thread ID:
00832295
Message ID:
00832295
Views:
52
I have the following code and for some reason it is giving the error that the class "CrystalRuntime.Application" is not defined.

I have registered the crviewer.dll and have no idea what to do next.



thisform.pageframe1.page2.rptviewer.visible=.t.
thisreport= '"F:\Apps\In-House Apps\lp2ms\REPORTS\acqtransfer.rpt"'
CRApplication = createobject("CrystalRuntime.Application") (THIS IS WHERE I GET THE ERROR)
CRReport = createobject("CrystalRuntime.Report")
CRReport = CRApplication.openreport(&thisreport)
thisform.pageframe1.page2.rptviewer.reportsource=CRReport
thisform.pageframe1.page2.rptviewer.enableexportbutton=.t.
thisform.pageframe1.page2.rptviewer.enablepopupmenu=.t.
thisform.pageframe1.page2.rptviewer.enablezoomcontrol=.t.
thisform.pageframe1.page2.rptviewer.enablesearchexpertbutton=.t.
thisform.pageframe1.page2.rptviewer.viewreport
thisform.pageframe1.page2.rptviewer.refresh()
thisform.pageframe1.page2.rptviewer.setfocus()
God Bless America
Next
Reply
Map
View

Click here to load this message in the networking platform