By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,332 Members | 1,117 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,332 IT Pros & Developers. It's quick & easy.

Print a $variable

P: n/a
Is it possible to make a print function that with a click on a button, sends
a $variable direct to a printer ?

I'm making a invoice system where my clients should be able to print their
invoices from their profile on my site..

The entire invoice is put in a $variable and echo'ed on the screen and it is
this variable they should be able to print.
Feb 5 '07 #1
Share this Question
Share on Google+
2 Replies

P: n/a
EnjoyNews wrote:
Is it possible to make a print function that with a click on a button, sends
a $variable direct to a printer ?

I'm making a invoice system where my clients should be able to print their
invoices from their profile on my site..

The entire invoice is put in a $variable and echo'ed on the screen and it is
this variable they should be able to print.

Investigate CSS print media...
Mick
Feb 5 '07 #2

P: n/a

I am also looking for a solution to this problem.

I am using Ajax to load xhtml into an object and then i want to
window.print that object.
Any ideas guys?

Mar 23 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.