Printnig CR9 Subreport from VB6
Posted on 2004-04-19
I am attempting to write a VB6 viewer for Crystal Reports 9. My viewer receives the report name from a database and properly logs into the SQL server, prompts for parameters and displays the report, etc, BUT I am having lots of truoble printing.
I have attempted code with the commondialog control and with smiple crystal printing options, but have been unable to properly print subreports. I have several reports that contain nodemand subreports. When the user drills down, everything works find on the display, but when they click print, they get the main report, even though they are viewing the subreport
The catch is, my code needs to be report independent - I need to be able to pass any report with any number of subreports into the viewer, and when the user clicks print, the VB6 code needs to determine what subreport they are viewing, etc and they need to get what they are currently looking at.
HELP Please. Any suggestions would be appreciated.