Standardized print format

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Chonk
Forum Newbie
Posts: 24
Joined: Fri May 28, 2004 3:58 am

Standardized print format

Post 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.
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post 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();
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

I'd use FPDF to make a PDF file and get them to print that. It'd look a lot nicer too.
Chonk
Forum Newbie
Posts: 24
Joined: Fri May 28, 2004 3:58 am

Post 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.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

FPDF does rock. Lots. I made this with it last night: http://www.ooer.com/onion/pokemon.pdf
Post Reply