Page 1 of 1
How to make an invoice and print it?
Posted: Wed Nov 18, 2009 12:42 pm
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...?
Re: How to make an invoice and print it?
Posted: Wed Nov 18, 2009 12:52 pm
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.

Re: How to make an invoice and print it?
Posted: Wed Nov 18, 2009 1:01 pm
by MicroBoy
So you think that the best way is to print the web page, not to export data in word etc....
p.s. Just me will use it:D
Re: How to make an invoice and print it?
Posted: Wed Nov 18, 2009 2:07 pm
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.
Re: How to make an invoice and print it?
Posted: Wed Nov 18, 2009 4:59 pm
by MicroBoy
thnx a lot.