This topic is locked

Page Break when Printing

10/29/2011 11:40:47 PM
PHPRunner General questions
bbarker author

I'd swear that I've seen this discussed before, but I couldn't find it. Sorry.
I'm printing almost 3,000 records in a report.

But some of the lines "wrap" when a field has a longer-than-normal name in it,

and that adds an extra line on that page.
Then the NEXT page only has one line printed on it.
So, I can't identify a specific number of lines for each page since they change. As a work-around I upped the page length to 1,000 lines. That seemed to work for most of the output.
But - isn't there a better way? Can we set the number of pages per line to "0" for example, and allow the page length to "float" and thereby print-out a full page of records each time before it forces a break? <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=18047&image=1&table=forumtopics' class='bbc_emoticon' alt=':blink:' />
Or is there a page-break line of code that I should remove from the page?

bbarker author 11/3/2011

Still NOT SOLVED.

bbarker author 11/12/2011



Still NOT SOLVED.



Still battling the "fixed length" page break. Since my records are either 1 or 2 lines long, I can't predict how many lines will fill up a page. So how can I let the PRINTER control the page break?
I adjusted the RECORDS PER PAGE to an excessive number of lines (1,000) but that seemed silly.
Any suggestions?

C
charly1211 11/26/2011

have a look on the html/css statements
div page-break-before and div page-break-after
I manage to print more than 100 html pages exactly with a background image with no mm diefference....

bbarker author 11/26/2011

Thanks... I'll check that right away and get back here with my results.

bbarker author 11/28/2011

All I found so far was the following in the list template:
{BEGIN pagination_block}<DIV id="pagination_block{$id}" class="xboxcontentb message_block">{$pagination}</DIV>

{END pagination_block}