Databands not fill in same page

Stimulsoft Reports.NET discussion
Post Reply
jpverdu
Posts: 32
Joined: Thu Mar 18, 2010 3:12 pm

Databands not fill in same page

Post 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
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Databands not fill in same page

Post 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.
jpverdu
Posts: 32
Joined: Thu Mar 18, 2010 3:12 pm

Databands not fill in same page

Post by jpverdu »

Thaks, it works perfectly
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Databands not fill in same page

Post by Alex K. »

Ok! We are always glad to help you!
Post Reply