Hello all,
I am new to Crystal Reports and am having difficulty display a Crystal Report inside a VB6 window.
In the project, I have added the component : Crystal ActiveX Report Viewer Library 10.0. I am using VB6 and Crystal Reports 10
I am simply trying to open a Report in a window. Here is the code Im using:
Dim Appl As New CRAXDRT.Application
Dim Report As New CRAXDRT.Report
Set Report = Appl.OpenReport(strPath & "\MACOEACKFRM.rpt")
CrystalReport1.ReportSource = Report
CrystalReport1.ViewReport
CrystalReport1 is the object in VB. When I run it, i get an error at 'CrystalReport1.ReportSource = Report'. The error is 'Object does not support this property or method'
And secondly, VB doesnt seem to know the method 'ViewReport'. When the drop-down list appears for the possible methods for CrystalReport1, ViewReport isnt part of the list.
Can anyone help me here? Thank you so much in advance,
Steph