I am trying to print a table of data to the printer, I have a list of persons in a building with entry times and dates. I need to print this out quickly in the event of fire. I am using php4 on a windows box. I have tried using printer_open() and Printer_write(). It works BUT each person is printed on a seperate sheet of paper. (20 poeple = 20 sheets). not good for the trees.
Can anyone give me a big hint on how to print the twenty records on one page.
CODE
$handle = printer_open("My Printer");
printer_start_page($handle);
XXX code to retrive data line in array XXX
printer_write($handle,"$MyDataString");
XXX loop until data finished
printer_end_page($handle);
printer_close($handle);