Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q1622 How can i print the active document using Internet Explorer?

irt.org | Knowledge Base | JavaScript | Print | Q1622 [ previous next ]

Q1622 How can i print the active document using Internet Explorer?

Try:

<object id="WBControl" width="0" height="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>

<script language="VBScript"><!--
Sub VBPrint() On Error Resume Next
  WBControl.ExecWB 6,1
End Sub
//--></script>

<script language=JavaScript><!--
if (self.print)
  document.write('<A HREF="javascript:;" language="JavaScript" onClick="self.print(); return false;">print</a>');
else if (navigator.appName.indexOf('Microsoft') != -1)
  document.write('<a href="javascript:;" language="JavaScript" onClick="VBPrint(); return false;">print</a>');
//--></script>

Feedback on 'Q1622 How can i print the active document using Internet Explorer?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.