Page 1 of 1

How to print second page on a new sheet of paper

Posted: Wed Dec 13, 2017 2:13 pm
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.

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

Posted: Wed Dec 13, 2017 5:17 pm
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.