anthonyabf
Programmer
Howdy,
I am a new user to VB 6 and CR 10. I have my VB project and my CR report named MyDiveLog. I just don't know how to integrate the two. I want to click a button in the application and view/print the report.
I bought the Crystal Reports Complete Reference today. Seems it has chapters and chapters on how to do the fancy stuff but doesn't tell me how to simply view the report MyDiveLog.rpt. This is the code I tried, but I get a "compile error - user defined type not defined"
Private Sub Form_Load()
Dim myReport As CrystalReport1
Set myReport = New CrystalReport1
CRViewer.ReportSource = myReport
CRViewer.ViewReport
End Sub
Please help!
I am a new user to VB 6 and CR 10. I have my VB project and my CR report named MyDiveLog. I just don't know how to integrate the two. I want to click a button in the application and view/print the report.
I bought the Crystal Reports Complete Reference today. Seems it has chapters and chapters on how to do the fancy stuff but doesn't tell me how to simply view the report MyDiveLog.rpt. This is the code I tried, but I get a "compile error - user defined type not defined"
Private Sub Form_Load()
Dim myReport As CrystalReport1
Set myReport = New CrystalReport1
CRViewer.ReportSource = myReport
CRViewer.ViewReport
End Sub
Please help!