Page 1 of 1

Print page 2 to last page

Posted: Wed Jan 16, 2013 10:49 am
by Pef
Hello,

I have a report with many pages.

The first page (Page0), is a page to count each databand in the nexts pages.
On this page, I activate (or not) the next pages :

End renderer of the page 0 :

Code: Select all

if (Count(DataBand13)==0)
{
	Page1.Enabled=false;
}
if (Count(DataBand14)==0)
{
	Page2.Enabled=false;
}

etc.
I can't hide the Page0 with the enabled properties because it occurs a bug with the differents PageHanderBand of the report.

So, I try to print only the second page of the report to the last page.
I don't wand to print the first page, but it must be enabled.


Is there a way to do that with the print event in the report events ?

Something like "PrintToPrinter(ByVal nCopies As Integer, ByVal collated As Boolean, ByVal startPageN As Integer, ByVal endPageN As Integer)" in VB.net

Re: Print page 2 to last page

Posted: Thu Jan 17, 2013 6:43 am
by HighAley
Hello.

You don't need to use additional page to manage others.
Please, try to move your code to the Before Print event of the next page after the Page0. And you can remove Page0 from your report.

Thank you.