[Javascript] How to modify the browsers page setup parameters like orientation and margins?

Klinger, Edwin EKlinger at SUNTERRA.COM
Thu Jan 16 13:18:18 CST 2003


Hello,

I'm looking for a way in JavaScript to be able to set the 
browsers "Page Setup" properties. I'm specifically talking about IE 
5+.

I would like to be able to set the page orientation and margins. This 
is needed for printing purposes and not for displaying the page in 
the browser.

I have a wide table that is about 900 in width that I need to print in
landscape and adjust the browsers margins to fit this table on the 
paper. I will be opening a new window for printing this table using 
the window.open()method.

I would like to set these properties myself and not have the user 
fiddle with them. Is this possible? Any other suggestions if not?

Thanks for any help,

Ed Klinger




Confidentiality Note:  This e-mail, and any attachment to it, contains
privileged and confidential information intended only for the use of the
individual(s) or entity named on the e-mail.  If the reader of this e-mail
is not the intended recipient, or the employee or agent responsible for
delivering it to the intended recipient, you are hereby notified that
reading this e-mail is strictly prohibited.  If you have received this
e-mail in error, please immediately return it to the sender and delete it
from your system.

This e-mail and any attachment(s) are believed to be free from virus.
However it is the responsibility of the recipient to ensure that they are
virus free.  We do not accept any liability for any loss or damage arising
in any way from the receipt, opening or use of this e-mail and any
attachment(s). Thank You. 




More information about the Javascript mailing list