[Javascript] Print without confirmation

Peter Brunone peter at brunone.com
Thu Oct 2 17:33:26 CDT 2003


	That's exactly what I've settled on doing.  A bit of help from
MSDN and some corrections from a colleague here, and I'm ready to go!

Thanks,

Peter

-----Original Message-----
From: javascript-bounces at LaTech.edu On Behalf Of Mckinney, Lori K

Can you use the WebBrowser object?
<http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/web
brow
ser/reference/objects/webbrowser.asp>

Looks like you can call ExecWB(6,-1) and not get the dialog.

Here is an example (in testing this, I had to change the last line of
the script to WebBrowser1.outerHTML = "";)

<http://www.uml-zone.com/tips/Tip/16640>

-----Original Message-----
From: Peter Brunone [mailto:peter at brunone.com]

Hi all...

   Does anyone have some sample code for a solution that would let me
print without the print dialog box?  This only has to work in IE 5.5 and
higher, so any MS proprietary ideas would be just fine.

Cheers,

Peter





More information about the Javascript mailing list