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

Stimulsoft Ultimate discussion
User avatar
tpontow
Posts: 206
Joined: Thu Sep 06, 2012 8:46 am
Location: Bonn, Germany

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

Post 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
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

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

Post by HighAley »

Hello, Thorsten.

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

Thank you.
User avatar
tpontow
Posts: 206
Joined: Thu Sep 06, 2012 8:46 am
Location: Bonn, Germany

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

Post by tpontow »

No, i haven't. I will try and let you know what happened :-)

Thank you
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

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

Post by HighAley »

Hello.

OK. Let us know if you need additional help.

Thank you.
User avatar
tpontow
Posts: 206
Joined: Thu Sep 06, 2012 8:46 am
Location: Bonn, Germany

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

Post by tpontow »

Hello Aleksey,

thank you! The property

Code: Select all

SegmentPerWidth 
works for me...

Regards
Thorsten Pontow
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

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

Post by Alex K. »

Hello.

Let us know if you need additional help.

Thank you.
User avatar
tpontow
Posts: 206
Joined: Thu Sep 06, 2012 8:46 am
Location: Bonn, Germany

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

Post 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
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

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

Post 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.
Attachments
UnlimitedWidthWithPageHeadersAndFooters.mrt
(26.47 KiB) Downloaded 226 times
User avatar
tpontow
Posts: 206
Joined: Thu Sep 06, 2012 8:46 am
Location: Bonn, Germany

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

Post 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
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
User avatar
tpontow
Posts: 206
Joined: Thu Sep 06, 2012 8:46 am
Location: Bonn, Germany

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

Post by tpontow »

Find attached a screenshot of a rendered report with sample data to illustrate the use of PageNofM expression while using SegmentPerWidth.
Attachments
Using PageNofM together with SegmentPerWidth
Using PageNofM together with SegmentPerWidth
PageNofM_WithSegmentPerWidth.png (95.61 KiB) Viewed 4889 times
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
Post Reply