Forum Moderators: coopster

Message Too Old, No Replies

How to print a invoice

         

compose

9:43 pm on Mar 31, 2006 (gmt 0)

10+ Year Member



Hello,

I have printed stationary of invoice formate. Now i am developing an applicon, which will print the values of invoice fields accordingly on invoice paper.

how can i do this?
Please help.

Vineet

coopster

11:20 pm on Mar 31, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You mean you have preprinted invoice forms and you want to load them in your printer and then have your web-based application print information on these forms?

Habtom

9:00 am on Apr 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think he means that.

In that case, I suggest you generate your reports into a pdf file, to mainitain the lines, the length and the format of the output.

Habtom

henry0

12:30 pm on Apr 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Interesting
I never had a need to create a PDF from PHP
would you please dev how one does it

thanks

coopster

12:41 pm on Apr 1, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



There are a few different ways to generate PDF's. Basically, you are just writing script instructions to a document. One of the free options is the fpdf class and there are some tutorials listed on their site [fpdf.org...]

henry0

1:21 pm on Apr 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Excellent, Thanks

compose

1:31 pm on Apr 3, 2006 (gmt 0)

10+ Year Member



Thanx for your reply.

But can we do this with gd library. I try to do it with gd library. I made a transprant gif image same size of invoice format, and then i placed the values of invoice fields on specific cordinates on gif image. Now that gif image contain values to be print on invoice, I think when we wil print it will work fine.

Please suggest.

vineet

compose

8:09 am on Apr 4, 2006 (gmt 0)

10+ Year Member



Please give your suggestion for this.

Vineet

coopster

12:14 pm on Apr 4, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I suppose you could do it that way. What about clarity? Is the image going to good enough for a human to discern? I imagine it is going to be quite large as well (size in bytes). You know, you can place images in a PDF document as well.