Page 1 of 1
Printer Output from an application
Posted: Wed Sep 01, 2004 3:29 pm
by richseg
I am looking to create some printer output from a program I made. What I need is to have a document (much like a word document) thrown to the printer as the output but have a couple variables in there where I can substitute words or phrases.
Any ideas?
Posted: Wed Sep 01, 2004 3:40 pm
by feyd
provide a link to a printable version, use CSS media controls for disabling the stuff you don't want to print, have the printable script substitute these words and things..
Web page created on the fly
Posted: Wed Sep 01, 2004 3:58 pm
by richseg
Are you saying that I should make PHP generate an HTML page on the fly? That's a good idea I guess... You know on some webpages though you can click print and it actually brings up the print window of the browser... how would I do that?
Posted: Wed Sep 01, 2004 4:19 pm
by feyd
javascript:
document.print()