Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print out document without opening the doc 1

Status
Not open for further replies.

stupiet

Programmer
Aug 21, 2001
176
US
I want to create either a button or a link that will immediately print out a word document without opening the document. Is this possible with HTML, and if so what would the code look like?

Please help.

Thanks
 
I don't believe that you can print a document without opening it (although I could be wrong) However you could put a button on your page that calls pop-up page that minimizes then prints the page and then closes it's self. Although I think the user would still get prompted with the confirm print message.

Roj
 
It depends what browser you're supporting... In IE you can put <link rel=&quot;alternate&quot; media=&quot;print&quot; href=&quot;document.doc&quot;> between the <head> and </head> tags. Then when you print the page it will print the &quot;document.doc&quot; file...

I'm not sure what versions of IE this will work in, I'm using 5.5 and it works fine...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top