Page 1 of 1

Standardized print format

Posted: Mon May 09, 2005 10:08 am
by Chonk
Im in the middle(well end of) a simple ticket based system. After we have created a ticket I need to print it for both the customer and ourselves to attach to the system in for repair. The trouble is that im having some problem getting it to print correctly on standard A4 in ALL systems.

So im looking for the solution to get my PHP generated page standardized to A4 print out.

Posted: Mon May 09, 2005 10:18 am
by anjanesh
I dont see how you can control the user-client's side printing properties.
The only method to get to print on the client side is using Javascript function window.print();

Posted: Mon May 09, 2005 11:04 am
by onion2k
I'd use FPDF to make a PDF file and get them to print that. It'd look a lot nicer too.

Posted: Tue May 10, 2005 3:38 am
by Chonk
Looks like ill be using PDF, which is handy as I now have another backup solution (the .pdf file) incase the DB goes done and i can make a big catalogue of the tickets. Thanks guys.

Posted: Tue May 10, 2005 4:28 am
by onion2k
FPDF does rock. Lots. I made this with it last night: http://www.ooer.com/onion/pokemon.pdf