Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print page in IE 4

Status
Not open for further replies.

mrb

Programmer
Aug 21, 1999
1
US
How can I print the current web page in IE 4.0 (or greater) using VBscript? I would like it to print in landscape mode.
 
Call window.print... this will show the browser's print dialog box and you can set the landscape mode that way.<br>
<br>
For example:<br>
<br>
&lt;script language="VBScript"&gt;<br>
Sub PrintIt()<br>
window.print<br>
End Sub<br>
&lt;/script&gt;<br>
<br>
&lt;input type=button value="print" onclick="PrintIt()"&gt;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top