Hi, I'm writing an app, all my reports were coded from scratch, they are a mix of html+php, I have an issue when the reports have more than 1 page, at this time the page break are controlled by the printer, but some times the result are not well, for example the first page ends with:
cheers
Mr. Peter Pan
and in the second page only print this:
Never Land inc.
how to fix this?
so my questions are:
if the report doesn't fix in one single page, i think i can use the css tag before-page-break but how can I guess which are the last 8 lines, then send page-break and those 8 lines will printed in page 2?
is there a way to know how many lines my report has? all my data is taken from the DB, so here it is an example:
if(strlen(trim($rsrptverlev['actmanpac']))!=0){
echo ". Actividad Manual: " . $rsrptverlev['actmanpac'] ;
}
if(strlen(trim($rsrptverlev['escpac']))!=0){
echo ". Escolaridad: " . $rsrptverlev['escpac'] ;
}
if(strlen(trim($rsrptverlev['ocupac']))!=0){
echo ". Ocupacion: " . $rsrptverlev['ocupac'] ;
}
thinking that $rsrptverlev['ocupac'] has 30 lines, is there a way to send the last 10 lines to another page?
- is there any other way to do this?
regards