Printing without dialog in XP SP2
- From: "AndersBj" <AndersBj@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 11 Apr 2005 03:55:04 -0700
Hi!
I use the following script to print a web-page on our intranet without a
print dialog.
function PagePrint()
{
self.focus();
document.body.insertAdjacentHTML("beforeEnd", "<object id='idWBPrint'
width=0 height=0
classid='clsid:8856F961-340A-11D0-A96B-00C04FD705A2'></object>");
idWBPrint.ExecWB(6, -1);
idWBPrint.outerHTML = "";
}
This has worked without any problems until we upgraded our clients to
Windows XP SP2. Suddenly the print dialog appears again.
Does anyone know why this happens and how it can be solved?
Thank you in advance!
/Anders
.
- Follow-Ups:
- Re: Printing without dialog in XP SP2
- From: Michael Harris \(MVP\)
- Re: Printing without dialog in XP SP2
- Prev by Date: merge the variable name with jscript
- Next by Date: Re: merge the variable name with jscript
- Previous by thread: merge the variable name with jscript
- Next by thread: Re: Printing without dialog in XP SP2
- Index(es):
Relevant Pages
|