Hi
I have a project that is written in Visual Basic .NET within Visual Studio 2005.
Within my project, I have a form that contains a 'Print' button using the .NET button control and the 'Crystal Report 11.5 ActiveX Control' - to load Crystal Report XI reports.
Within my print button I have the following code
mPrintReportDocument.PrintToPrinter(1, True, 1, 1)
Say If I load a report that contains a sub-report.
If I am looking at the main report and press the 'Print' button - the document prints fine
BUT when I drill into the subreport - so 2 tabs are displaying 'Main Report' and 'Subreport'.
If i click on the 'Subreport' tab and press 'Print' - the main report prints out NOT the subreport.
Could you please tell me the code or the technique to print the subreport.
pryeshg
Edited by: pryeshg on Jun 11, 2009 10:51 AM
Edited by: pryeshg on Jun 11, 2009 10:52 AM