954,184 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Is it possible to print an external file using javascript?

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

NuGG
Junior Poster
111 posts since Feb 2005
Reputation Points: 10
Solved Threads: 1
 

JavaScript can only print the current document in the window.

stymiee
He's No Good To Me Dead
Moderator
3,360 posts since May 2006
Reputation Points: 161
Solved Threads: 38
 

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

NuGG
Junior Poster
111 posts since Feb 2005
Reputation Points: 10
Solved Threads: 1
 

please do post if you were able to find a workaround

bholowasia
Newbie Poster
1 post since May 2009
Reputation Points: 10
Solved Threads: 0
 

You can do this with AJAX.

essential
Posting Shark
974 posts since Aug 2008
Reputation Points: 114
Solved Threads: 138
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You