Page 1 of 1

Databands not fill in same page

Posted: Thu Aug 12, 2010 11:09 am
by jpverdu
Hello,
I have a report with 2 pages.

The first page contains some databands that are not always printed, depending on datas. In the case there is enough place for databands of the second page in the first page, I would like that these databands (defined in the second page on design time) fill the first page.

How can I do this ?

Thanks for reply

JP Verdu

Databands not fill in same page

Posted: Fri Aug 13, 2010 1:54 am
by Alex K.
You can do this in AfterPrintEvent of first page. You need change PrintOnPreviousPage of second page. Something like this:

Code: Select all

if (this.RenderedPages.Count == 1)
page2.PrintOnPreviousPage = true;
Thank you.

Databands not fill in same page

Posted: Fri Aug 13, 2010 2:26 am
by jpverdu
Thaks, it works perfectly

Databands not fill in same page

Posted: Fri Aug 13, 2010 2:47 am
by Alex K.
Ok! We are always glad to help you!