window.print with no print dialog prompt

S

Steven

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
 
I

Ivo

Steven said:
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
 
J

Jim Ley

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.
 
D

Dr John Stockton

JRS: In article <[email protected]>, seen in
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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top