Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What am I doing wrong
Message
De
25/09/2003 11:40:30
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Crystal Reports
Titre:
What am I doing wrong
Divers
Thread ID:
00832295
Message ID:
00832295
Vues:
53
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform