SqueakinSweep
Programmer
Im either missing the plot, or missing something obvious Im sure of it. I have a form named frmViewer, which is simply a form with a Crystal Viewer on it, and a few other controls. What I want to do is to pass the report to my viewer. This I can do as follows
However in my viewers zRunReport Method, I have to specify the Crystal Report as an Object. This means I cant get at its methods without casting it as a Crystal Report??. So what Im after is either a way to cast this back as a base Crystal Report, or for the parameter in zRunReport to take a base Crystal Report
What does anyone else do as a workaround?
Sweep
...if it works dont mess with it
Code:
Dim orep As New CrystalReport1
'Fill Report with data etc here...
Dim oViewer As New modReports.frmCrystal
'Here I pass in the Report to oViewer
oViewer.zRunReport(orep)
However in my viewers zRunReport Method, I have to specify the Crystal Report as an Object. This means I cant get at its methods without casting it as a Crystal Report??. So what Im after is either a way to cast this back as a base Crystal Report, or for the parameter in zRunReport to take a base Crystal Report
What does anyone else do as a workaround?
Sweep
...if it works dont mess with it