Print Report Data on New Page

Stimulsoft Reports.WPF discussion
Post Reply
AlexN
Posts: 11
Joined: Wed Feb 01, 2012 9:45 am

Print Report Data on New Page

Post by AlexN »

Hello,
i have a Condition in a Textfield and when this Condition is true i want to print the following data on the next page, but i dont know how the command/variable for a new page is.
Could you please tell me the Command/Variable for a new page.
Here a short example what i want:
{Context.Title == "New Page" ? NewPage : Context.Title}

Thank you very much!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Print Report Data on New Page

Post by Alex K. »

Hello,

You can use the following expression in BeforePrint event:

Code: Select all

if (Context.Title == "New Page")
	Engine.NewPage();
Thank you.
Attachments
ReportSample.mrt
(16.57 KiB) Downloaded 353 times
AlexN
Posts: 11
Joined: Wed Feb 01, 2012 9:45 am

Re: Print Report Data on New Page

Post by AlexN »

Works very well, thank you very much!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Print Report Data on New Page

Post by Alex K. »

Hello,

We are always glad to help you!
Post Reply