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?
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.
It depends what browser you're supporting... In IE you can put <link rel="alternate" media="print" href="document.doc"> between the <head> and </head> tags. Then when you print the page it will print the "document.doc" file...
I'm not sure what versions of IE this will work in, I'm using 5.5 and it works fine...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.