Multiple report headers - page break between

Stimulsoft Reports.NET discussion
Post Reply
radekcerny2
Posts: 25
Joined: Wed Jan 04, 2017 9:34 pm

Multiple report headers - page break between

Post by radekcerny2 »

I have a report with a complex group of headers. The first page contains a lot of data which should not but can overflow on to another page. I need to have a variable section (1 field of text that may be long or short) to be on the next page by itself. I see no way of forcing a page break before that page or after the 1st one. I see there are Events - before print - but I do not know what to put there to force a page break.

Thanks
Attachments
PropertyInspection.mrt
(58.02 KiB) Downloaded 213 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Multiple report headers - page break between

Post by HighAley »

Hello.

Please, try to use next code:

Code: Select all

Engine.NewPage();
Thank you.
radekcerny2
Posts: 25
Joined: Wed Jan 04, 2017 9:34 pm

Re: Multiple report headers - page break between

Post by radekcerny2 »

I have added that to the before print event and it appears to work as desired. Thanks.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Multiple report headers - page break between

Post by HighAley »

Hello.

We are always glad to help you.
Let us know if you need our help.

Thank you.
Post Reply