Print page 2 to last page

Stimulsoft Reports.NET discussion
Post Reply
Pef
Posts: 10
Joined: Mon Jan 14, 2013 6:51 am

Print page 2 to last page

Post 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
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Print page 2 to last page

Post 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.
Post Reply