Re: Printing without dialog in XP SP2

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



AndersBj wrote:
> 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?


Google Groups : microsoft.public.scripting.vbscript
http://groups-beta.google.com/group/microsoft.public.scripting.vbscript/browse_thread/thread/80994003973cde36


--
Michael Harris
Microsoft MVP Scripting
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Please ask follow-up questions via the original newsgroup thread.



.



Relevant Pages

  • Printing without dialog in XP SP2
    ... I use the following script to print a web-page on our intranet without a ... function PagePrint() ...
    (microsoft.public.scripting.jscript)
  • Re: How to automate modifying IE security settings.
    ... 'Zones 1 is the Intranet ... 'Intranet Settings ... and then once your script has executed you can restore the settings to 1 ...
    (microsoft.public.scripting.jscript)
  • RE: Removing print statements from cgi script
    ... web-page created from cgi.pm depnding on the effect of a ... Search Google for details on AJAX. ... I print the header and a selection form which then runs a sub ... your script stops running. ...
    (perl.beginners)
  • URGENT - Browser not sending form info to perl script...
    ... is does activate the script. ... > intranet. ... > to process form info but IE will not send the info ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Javascript and WScript
    ... I need to use WScript on an intranet based application to retrive client's ... The script is very simple which i have copied below. ... Is there are way to mark my script as safe or is there any thing or method ... Anthony Jones - MVP ASP/ASP.NET ...
    (microsoft.public.scripting.jscript)