Start New Page base on Condition

Stimulsoft Reports.NET discussion
Post Reply
mgarier01
Posts: 3
Joined: Fri May 02, 2008 9:00 am

Start New Page base on Condition

Post by mgarier01 »

Hi,

I am creating a report and one of the requirement for this is to start a new page when the value of
of a column from my datasoure table changes.
Can anybody please tell me if this is possible? If yes, can you please guide me on how to do it.

thanks,

mgarier01
mgarier01
Posts: 3
Joined: Fri May 02, 2008 9:00 am

Start New Page base on Condition

Post by mgarier01 »

Hi,

I figured out how to do it.

Before running the actual report I have a Dialog box that allows the user
to select groups (max of 3) and allow user page break on 1 of the columns in the group.
This is how I do it.
There is a property StartNewPage in the group band.
In one of the event from the group band selected (BeforePrintEvent in my case)
I inserted the condition for page break
this.GroupHeader1.StartNewPage = ExamReportData.PageBreakFieldValue.Length > 0.

I am not sure if there is an easiest way to do it. but it works for me.
This might be helpful in case you have similar requirements.

mgarier



Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Start New Page base on Condition

Post by Vital »

Hello,

We will release new version of our report engine - EngineV2 in few days. In version you can start new page with help of following code in script:

Code: Select all

this.EngineV2.NewPage();
for new column:

Code: Select all

this.EngineV2.NewColumn();
Thank you.
Post Reply