How to make an invoice and print it?

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
MicroBoy
Forum Contributor
Posts: 112
Joined: Sat Mar 14, 2009 5:16 pm

How to make an invoice and print it?

Post by MicroBoy »

I want to make invoices from php, and print them. Which way is the best way, to print the invoices from a PHP page, or to export them into another software like word etc..., or if there is any other way...?
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Re: How to make an invoice and print it?

Post by superdezign »

Just inform your users to print out the web page. Format it in a printer-friendly manner (B&W, fits on one page, etc.) so that you don't waste their ink and paper.
If you could force the user's printer to start operation, then people who own printers would have a lot of wasted ink. :P
MicroBoy
Forum Contributor
Posts: 112
Joined: Sat Mar 14, 2009 5:16 pm

Re: How to make an invoice and print it?

Post by MicroBoy »

So you think that the best way is to print the web page, not to export data in word etc....:D

p.s. Just me will use it:D
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: How to make an invoice and print it?

Post by Jonah Bron »

Or, you can use a PDF library, like FPDF.

http://www.fpdf.org/

But yes, just printing to the page would be much easier.
MicroBoy
Forum Contributor
Posts: 112
Joined: Sat Mar 14, 2009 5:16 pm

Re: How to make an invoice and print it?

Post by MicroBoy »

thnx a lot.
Post Reply