How to print second page on a new sheet of paper

Stimulsoft Reports.NET discussion
Post Reply
blazena
Posts: 3
Joined: Wed May 21, 2014 12:53 pm

How to print second page on a new sheet of paper

Post by blazena »

I have a report with 2 pages. Second page is printed optionally (only when my document has parameter Print2Page=true).
The first page may be printed physically on several sheets (it depends on the amount of input data).
As we print on both sides of paper sheet, I need to secure that the 2.page of the report will be printed always on a new sheet of paper,
it means on a odd-numbered page.
Thank you for your advice.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to print second page on a new sheet of paper

Post by HighAley »

Hello.

You could use next code on the Before Print event of the Page2.

Code: Select all

if (PageNumber % 2 == 1)
	Engine.NewPage();
Here is a sample report template.

Thank you.
Attachments
NewPage.mrt
(6.2 KiB) Downloaded 311 times
Post Reply