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