Is it possible to print an external file using javascript?

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Feb 2005
Posts: 92
Reputation: NuGG is an unknown quantity at this point 
Solved Threads: 1
NuGG's Avatar
NuGG NuGG is offline Offline
Junior Poster in Training

Is it possible to print an external file using javascript?

 
0
  #1
Oct 25th, 2006
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
Pubonwheels - Mobile Bar Services for the South West of England.
The Kings Head Inn - The Kings Head, Underhill, Coleford, Somerset, UK.
South West Ravers - Going out to all you jungle drum and bass ravers.
UFB Live Radio - Keep It Locked.
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,422
Reputation: stymiee is on a distinguished road 
Solved Threads: 35
Moderator
stymiee's Avatar
stymiee stymiee is offline Offline
He's No Good To Me Dead

Re: Is it possible to print an external file using javascript?

 
0
  #2
Oct 25th, 2006
JavaScript can only print the current document in the window.
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 92
Reputation: NuGG is an unknown quantity at this point 
Solved Threads: 1
NuGG's Avatar
NuGG NuGG is offline Offline
Junior Poster in Training

Re: Is it possible to print an external file using javascript?

 
0
  #3
Oct 25th, 2006
Ok i thought so. Is there any other way to do this?
Pubonwheels - Mobile Bar Services for the South West of England.
The Kings Head Inn - The Kings Head, Underhill, Coleford, Somerset, UK.
South West Ravers - Going out to all you jungle drum and bass ravers.
UFB Live Radio - Keep It Locked.
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 1
Reputation: bholowasia is an unknown quantity at this point 
Solved Threads: 0
bholowasia bholowasia is offline Offline
Newbie Poster

Re: Is it possible to print an external file using javascript?

 
0
  #4
May 4th, 2009
please do post if you were able to find a workaround
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 954
Reputation: essential will become famous soon enough essential will become famous soon enough 
Solved Threads: 131
Featured Poster
essential's Avatar
essential essential is offline Offline
Posting Shark

Re: Is it possible to print an external file using javascript?

 
0
  #5
May 4th, 2009
You can do this with AJAX.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC