I created a Crystal Report using CR 8.5 developer edition and I tried to integrate it to VB 6.0 (backend is Win2K). I added all crystal controls from project\references and project\components (Controls and Designers). I am new in this area and need help. The following is part of my code:
In main.bas
Public Application as CRAXDRT.Application
Public Report as CRAXDRT.Report
In frmView
Set Application = New CRAXDDRT.Application
Set Report = Application.OpenReport(App.Path & "\Report1.rpt"
Private Sub form_load()
CRViewer1.ReportSource = Report
CRViewer1.ViewReport
End Sub
I tried to run it and got compile error "Invalid Outside Procedure" and "Set" was highlighted.
Help!!!
In main.bas
Public Application as CRAXDRT.Application
Public Report as CRAXDRT.Report
In frmView
Set Application = New CRAXDDRT.Application
Set Report = Application.OpenReport(App.Path & "\Report1.rpt"
Private Sub form_load()
CRViewer1.ReportSource = Report
CRViewer1.ViewReport
End Sub
I tried to run it and got compile error "Invalid Outside Procedure" and "Set" was highlighted.
Help!!!