Page 1 of 1

Break page on odd page

Posted: Wed Dec 28, 2011 10:25 am
by amarinelli
I have a report with groups, and actually I break the page for any group; I'd like to have any group starting on a odd page (leaving a blank page if needed), to have no problem on side-by-side printing.

Example

---- Actually ----

Page 1: Group A
Page 2: Group B - first half
Page 3: Group B - second half
Page 4: Group C

---- Desired ----

Page 1: Group A
Page 2: Group B - first half
Page 3: Group B - second half
Page 4: [blank]
Page 5: Group C


thanks in advance for any hint

Break page on odd page

Posted: Thu Dec 29, 2011 7:57 am
by HighAley
Hello.
amarinelli wrote:I have a report with groups, and actually I break the page for any group; I'd like to have any group starting on a odd page (leaving a blank page if needed), to have no problem on side-by-side printing
Please, use next code in the Before Print event of the Group Header:

Code: Select all

if (PageNumber % 2 == 0)
{
	Engine.NewPage();
}
Thank you.

Break page on odd page

Posted: Fri Dec 30, 2011 4:56 am
by amarinelli
thank you very much!

Break page on odd page

Posted: Mon Jan 02, 2012 6:59 am
by Andrew
Hello,

Happy New Year!

Thank you.