Limit DataBand

Stimulsoft Reports.NET discussion
Post Reply
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Limit DataBand

Post by Leandro Borges »

Hello.
I need a DataBand grow to a certain size and when you reach that size, break and print the rest on another page.
Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Limit DataBand

Post by Alex K. »

Hello,

You can use the additional code in the BeforePrint event, in which calculate summary size and use the Engine.NewPage() method.

Thank you.
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Re: Limit DataBand

Post by Leandro Borges »

Hello.
My DataBand print 4 times, how do I print it 10 more times after the last record?
Example:
first record
second record
third record
record room

Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Limit DataBand

Post by Alex K. »

Hello,

Please try to use the EmptyData component. Also, you can add the additional DataBand component and use the following code in BeforePrint event:

Code: Select all

AdditionalDataBand.CountData = 10 - DataBand.Count
Thank you.
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Re: Limit DataBand

Post by Leandro Borges »

Hello.
It worked.
Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Limit DataBand

Post by Alex K. »

Hello

We are always glad to help you!

Thank you.
Post Reply