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!

forcing landscape print

Status
Not open for further replies.

bluebytez

Programmer
Dec 20, 2001
39
MY
Hi, Is there a way to force the browser to print in landscape mode ?
 
I don't think that there is a way to force the orientation of a print.

I have come across several java/vb applications/code that alow u to manage printing from a site but they don't deal with it very well.

your best bet it to inform the user that they need to adjust the settings on the print menu when they go to print the image.

You could do this either by text on the page or a popup window.

here is the code, this can either be in the body tag (on load) or in the image tag.
Code:
<img src=&quot;fimagename&quot; onMousedown=&quot;MM_popupMsg('Please select landscape for the print orientation in the print menu')&quot;>

<body onLoad=&quot;MM_popupMsg(''Please select landscape for the print orientation in the print menu')&quot;>
I hope this helps
Manic
-----------------------------
I've broken it again !!
-----------------------------
lee.gale@virgin.net
 
sorry forgot the code that goes above the head tag

<script language=&quot;JavaScript&quot;>
<!--
function MM_popupMsg(msg) { //v1.0
alert(msg);
}
//-->
</script>
Manic
-----------------------------
I've broken it again !!
-----------------------------
lee.gale@virgin.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top