PDA

View Full Version : How to create a link to print Word Document?


PercyPea
09-24-2002, 12:44 PM
Hi, I've found that if I put
<link rel=alternate media=print href="worddoc.doc">

in the header of my html file, it makes the 'print' option under the file menu print the word document 'worddoc.doc'

Is there anyway to have the worddoc.doc print from a text link?

Ie, if I click on the word 'print' on a page, it will print the document?

Perhaps something like the window.print(); command?

Thanks

PercyPea

beetle
09-24-2002, 04:55 PM
window.print() invokes the same printer dialog that File >> Print or Ctrl+P activates...so it should work for you...