By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,256 Members | 1,700 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,256 IT Pros & Developers. It's quick & easy.

window.print with no print dialog prompt

P: n/a
Hi all,

Is it possible to do an ie print from javascript that does not bring
up the print dialog? I'm in a situation where i need to load a
sequence of files into a browser and print all of them without any
user interaction.

Thanks!
~Steven
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Ivo
"Steven" <st***********@adelphia.net> wrote in message
news:74*************************@posting.google.co m...
Hi all,

Is it possible to do an ie print from javascript that does not bring
up the print dialog? I'm in a situation where i need to load a
sequence of files into a browser and print all of them without any
user interaction.

Thanks!
~Steven


Sorry, afraid not. Security thing. Imagine such a code in the hands of porn
spammer.
Can you not glue the pages together somehw?
Ivo
Jul 20 '05 #2

P: n/a
On 21 Sep 2003 22:09:20 -0700, st***********@adelphia.net (Steven)
wrote:
Hi all,

Is it possible to do an ie print from javascript that does not bring
up the print dialog? I'm in a situation where i need to load a
sequence of files into a browser and print all of them without any
user interaction.


http://www.meadroid.com/scriptx/ For IE (or win32 opera/netscape
with neptune from the same folk)

Obviously this is in a secured environment, as Ivo noted.

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #3

P: n/a
JRS: In article <3f*********************@news.wanadoo.nl>, seen in
news:comp.lang.javascript, Ivo <no@thank.you> posted at Mon, 22 Sep 2003
07:49:29 :-
"Steven" <st***********@adelphia.net> wrote in message
news:74*************************@posting.google.c om...
Is it possible to do an ie print from javascript that does not bring
up the print dialog? I'm in a situation where i need to load a
sequence of files into a browser and print all of them without any
user interaction.

Sorry, afraid not. Security thing. Imagine such a code in the hands of porn
spammer.


Can be done, without insecurity; but not AIUI by javascript on a normal
page.

Write, in your favourite HLL, code to issue the necessary HTTP requests,
collect the files, and print them.

To print them : either write your own HTML renderer, with possibly a JS
interpreter ; or merge them into one long page and print that manually
with a browser (problem with page break, soluble perhaps with CSS).

--
John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> JS maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics, links.
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.