Hi! I have a crystal report (that contains a subreport on demand) on a VS2003 window project. I want the user to set the page before sending it to the printing so I've created a window where I get this options, such as paper orientation, paper size and margins. I disable the print button on my CRViewer, and create a new print button that calls the report PrintToPrinter metod. it works fine when printing the main report, but it doesn't work with the subreports.
How can I make this button behave as the one on the CRViewer toolbar. I don't care if I cannot have the select printer dialog, but I would like to print only the "active tab", that is the master or the details.
Thanks for any help.

PrinttoPrinter doesn't print subreport
Joy19101
I've realized that the point is to individuate if what I have to print is the main report or the subreport and according to that call the appropriate PrintToPrinter method.
I check my CRViewer.Controls to find out wich is the selectedTab and so wich report to print..
Is there any other way to find if the user is seeing the main report or the subreport