T
|
thesofa author 9/15/2006 |
has anyone any idea how to do this please |
J
|
Jane 9/15/2006 |
Hello, |
![]() |
kujox 9/15/2006 |
Put this in where you need the page break |
T
|
thesofa author 9/15/2006 |
Put this in where you need the page break echo "<p style=\"page-break-before: always\">\n"; I use it in the printer friendly page as each record is displayed on a single page.
|
![]() |
kujox 9/16/2006 |
In the printer friendly page there's a loop loopRs it looks like this already has the record counter $iNumberOfRows that you need for the 10 records. Just put your layout for each record in a function called from here. |
T
|
thesofa author 9/17/2006 |
Cracked it at last, or sort of <?php $iNumberOfRows = $iNumberOfRows + 1; ?> </td></tr></table>
<?php $aa=$iNumberOfRows % 8; if ($aa==7) echo "<p style=\"page-break-after: always\">\n"; ?>
<?php $iNumberOfRows = $iNumberOfRows + 1; ?> </td></tr></table> <?php $aa=$iNumberOfRows % 8; if ($aa==7) echo "<p style=\"page-break-after: always\">\n"; ?>
|
|
jwoker 11/27/2006 |
Is there a solution for this with 3.1? I'm sure this " echo "<p style=\"page-break-before: always\">\n"; " is still the critical code but I need help figuring out where to put it. I looked for $iNumberOfRows in the _print.php file but couldn't find it. |
L
|
larsonsc 12/9/2006 |
I too need to know where to add this string of code in 3.1. I am building a rather complicated report, and being able to control the page breaks is going to be very valuable if I am going to be able to make this a one-click generated report. |
T
|
thesofa author 12/9/2006 |
The way I found out where to put the break was to paste a line like |
L
|
larsonsc 12/9/2006 |
I got this to work tonight by entering the following code where I wanted the break: <P style="PAGE-BREAK-AFTER: always"></P>
|
W
|
wpatters1229 12/12/2007 |
In the new code there is nothing generated where you can place the page break. |
![]() |
Admin 12/13/2007 |
Bill, |