Page 1 of 2

Force a page break if not all columns fits on a page

Posted: Thu Sep 03, 2015 9:25 am
by tpontow
Hello Stimulsoft support,

is it possible in a report to force a page break if not all columns (text components) of a databand fits on a page? I want do define a databand with text but sometimes the last text component does not fit into the databand so it needs a greater width than it should have (i.e. the sum of width of all text components is greater then the page width minus margins left and right )?

So is it possible to print that "column" onto the next page and than continue with the rest of table on the next but one page?

Thanks and regards
Thorsten Pontow

Re: Force a page break if not all columns fits on a page

Posted: Thu Sep 03, 2015 12:50 pm
by HighAley
Hello, Thorsten.

Did you try to use Segment per Width property of the page?

Thank you.

Re: Force a page break if not all columns fits on a page

Posted: Thu Sep 03, 2015 12:59 pm
by tpontow
No, i haven't. I will try and let you know what happened :-)

Thank you

Re: Force a page break if not all columns fits on a page

Posted: Thu Sep 03, 2015 1:41 pm
by HighAley
Hello.

OK. Let us know if you need additional help.

Thank you.

Re: Force a page break if not all columns fits on a page

Posted: Fri Sep 04, 2015 9:13 am
by tpontow
Hello Aleksey,

thank you! The property

Code: Select all

SegmentPerWidth 
works for me...

Regards
Thorsten Pontow

Re: Force a page break if not all columns fits on a page

Posted: Fri Sep 04, 2015 10:44 am
by Alex K.
Hello.

Let us know if you need additional help.

Thank you.

Re: Force a page break if not all columns fits on a page

Posted: Tue Sep 29, 2015 8:10 am
by tpontow
Hello,

i understand that when using

Code: Select all

SegmentPerWidth = 2
i got one virtual page that has double width as originally given from the page format setting and all data bands and header and footer bands are streched over that virtual page.

But is it somehow possible to show my footer and header text components on every page (i.e. Page 1 and Page 2 of the segmented page)? That would be a big help for me :) . Otherwise i have to duplicate my header and footer components and place them by myself :|

Thanks and regards
Thorsten Pontow

Re: Force a page break if not all columns fits on a page

Posted: Tue Sep 29, 2015 12:57 pm
by HighAley
Hello, Thorsten.

There could be different situations. We can't change this behavior now.
You could use the solution in the attached report template to repeat components.

Thank you.

Re: Force a page break if not all columns fits on a page

Posted: Mon Oct 19, 2015 2:15 pm
by tpontow
Hello Aleksey,

when using SegmentPerWidth > 1 i got one "virtual" page which spans over many "real" pages in Export or Print. Now i'd like to have a text component on every "real" page which an expression which gives me the real page number even it is one virtual page at all.

Is that possible???

For example: SegmentPerWidth > 2, place two text components on that one virtual page so that one of the componets is placed on every page while printing and showing the page number (1 of 2 / 2 of 2).

Kind regards
Thorsten Pontow

Re: Force a page break if not all columns fits on a page

Posted: Mon Oct 19, 2015 3:06 pm
by tpontow
Find attached a screenshot of a rendered report with sample data to illustrate the use of PageNofM expression while using SegmentPerWidth.