Expression to see "if data band will cause a page break"

Stimulsoft Ultimate discussion
Post Reply
stuffmeister
Posts: 1
Joined: Mon Jun 06, 2016 12:25 pm

Expression to see "if data band will cause a page break"

Post by stuffmeister »

Hello, I would like to know if it's possible to know (or predict) when the the results of a data band will spill over into a new page, and use this as a condition to show a text field and/or a line?

I have this setup, simplified:
-------------------
[HeaderBand]

[DataBand] with anything from 5-50 entries, 10 will fit on a page
[Line and/or text] I'd like this to show *only* if the Data Band above will spill over more than 1 page

[More content]

[Page footer] needs to be shown on each page.
-------------------------

Is there an expression I can use to enable/disable the [line or text] element if that specific data band will cause a page break?
I can't use "print on all but first pages" and similar properties.

Thanks for any assistance!

Regards
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Expression to see "if data band will cause a page break"

Post by HighAley »

Hello.

As a way you could use Double Pass mode. If you set the Number of Pass property of the report to Double Pass.
You could get necessary information on the First Pass and enable or disable the band with additional data of the second.

Maybe there are an other solutions. If you send us your report template with sample data we will get you more detailed answer.

Thank you.
Post Reply