In the developers guide for Crystal Reports it says...
Dim report As New CrystalReport1
CRViewer1.ReportSource = report
CRViewer1.ViewReport
The CrystalReport1 object gives an error saying that the 'User Defined Type is not defined'. I have 2 controls on the form. 1 is the crviewer and the other is the crystal report control (this is hooked up to a report that I previously created). I have added the reference 'Crystal Reports 8.5 ActiveX Designer Design and Runtime Library'.
How do I define CrystalReport1?
Dim report As New CrystalReport1
CRViewer1.ReportSource = report
CRViewer1.ViewReport
The CrystalReport1 object gives an error saying that the 'User Defined Type is not defined'. I have 2 controls on the form. 1 is the crviewer and the other is the crystal report control (this is hooked up to a report that I previously created). I have added the reference 'Crystal Reports 8.5 ActiveX Designer Design and Runtime Library'.
How do I define CrystalReport1?