Page 1 of 1

Start New Page base on Condition

Posted: Mon Jun 02, 2008 6:07 am
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

Start New Page base on Condition

Posted: Mon Jun 02, 2008 10:38 am
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




Start New Page base on Condition

Posted: Mon Jun 02, 2008 9:42 pm
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.