Forum Moderators: coopster

Message Too Old, No Replies

Sending variable information to a physical printer

         

neophyte

7:58 am on Dec 7, 2006 (gmt 0)

10+ Year Member



Hello All -

I need to physically print bunch of reservation information - which are contained in numerious session variables - to a printer.

My plan would be to combine all of this information into one large plain text variable - seperated with line breaks as appropriate - same as I do when I use php to send an email. That's easy enough. But, once I get everything combined, how do I send this info to the physical printer?

I guess the path of least resistance would be to use print.window() - but I don't want to print the window... just the variable.

Any suggestions?

Neophyte

mcibor

9:30 am on Dec 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If the php server is running on Windows, then it's possible to print with php. Check
[php.net...]

The other solution would be to create pdf from php - there you have power over what's being printed.

You can check out
[zend.com...]

or a ready to use pdf library
[sourceforge.net...]

The only other solution is printing from the browser. But then it's horribly hard to specify the layout.

Regards
Michal

neophyte

9:53 am on Dec 7, 2006 (gmt 0)

10+ Year Member



Thanks mcibor - I'll check out the links.

Neophyte