I was wondering if it is possible to print a file with out viewing it first by using a hyperlink on a webpage. Bacically i want users to print off a form (doc file) by clicking a link.


eg:
-so the hyperlink would be here:

kings-head-inn.com/print/linkpage.html

-and the doc file would be here:

kings-head-inn.com/print/doc.doc


I understand javascript can be used to print the current window or frame, but can it be used to print an external file? and how can this be done?


Thank you for your time,

Dylan

JavaScript can only print the current document in the window.

Ok i thought so. Is there any other way to do this?

please do post if you were able to find a workaround

You can do this with AJAX.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.