hi, i'm developing an app using php, i wrote the reports from scratch; one of the reports consist in display a kind of contract that has variable length, like this:
LEGAL REPORT
charlie brown, 27 years old decides to sell this object to....
...... blas bla bla bla
....
......blas bla bla
.....
.....
Sign
Charlie Brown
so, my problem is that some times if the body of the report is too long, the sign is printed in other page and that is not ok; all data is populated from an mysql database.
to print this report i just use the option file>print that belown to the browser, so basically the print process was not coded by me, i decided to use the print built in browser function.
so, my questions are:
how can I control the max lines displayed (for example lines<75, and if there is greater than send a line break and then the rest of the lines will printed in another page, how can I do this?
is it possible to send raw data directly to the printer using php?
regards