Printer Output from an application

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
richseg
Forum Newbie
Posts: 2
Joined: Wed Sep 01, 2004 3:26 pm

Printer Output from an application

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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..
richseg
Forum Newbie
Posts: 2
Joined: Wed Sep 01, 2004 3:26 pm

Web page created on the fly

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

javascript:

document.print()
Post Reply