Hi
Ive got a program which needs to printoff some pages of dynamic data, so I dont know how long theyre going to be, and therefore wont know how many pages its going to be.
Im not quite sure how Im going to go about printing the file(UNIX server, so cant use the printer functions). Perhaps create an html file so its formatted properly, then use get_file_contents to get the output and run a shell script to print it. THough im not sure what width to make the table so itll fit on a page. Anyone have any better ideas?
I need to have the page number at the top of each page, as well as a header. Anyone have an idea how I could do this without keeping track of the number of lines?
Thanks to anyone who takes the time to help me out.