Programming Page Setup with IE

  • Thread starter Thread starter Swami Muthuvelu
  • Start date Start date
S

Swami Muthuvelu

1. How can I setup "landscape" as the default page setup for a html
page.

W3.org provides the following syntax..
@page rotated {size: landscape}

What is the equivalent to do in IE 6.0 ?

2. I want to do the page numbering myself in the middle of a page at a
location I desire. Is it possible to do this?

3. How can I Control Page Headers and Footer, so that users don't have
to setup this.

Swami
 
You will find Header and Footer settings under the following registry key

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup
and
HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\PageSetup

For more information see the following MS article

http://support.microsoft.com/defaul...port/kb/articles/q236/7/77.asp&NoWebContent=1

I see from this article that there is also a sub-key under the above key
where you can specify the default printer (\printer)
I imagine that to make the default orientation to landscape all that you
need to do is to have a printer connection that has landscape as the default
orientation and then setting the \printer key value.

When I tested the above it did not seem to work, however on the page setup
dialog there is a printer button. Setting the default printers orientation
to landscape did work. However I do not know where the registry settings for
this are to do it programmatically.
 
This well known solution, is not appropriate when an anonymous web user on the internet wants to print a html page, and the web page is formatted to print correctly on a landscape orientation... Opening a html page can not and should not  set registry settings of a anonymous user computer.

Swami
 

Rob Parsons wrote: You will find Header and Footer settings under the following registry key

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup
and
HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\PageSetup

For more information see the following MS article

http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q236/7/77.asp&NoWebContent=1

I see from this article that there is also a sub-key under the above key
where you can specify the default printer (\printer)
I imagine that to make the default orientation to landscape all that you
need to do is to have a printer connection that has landscape as the default
orientation and then setting the \printer key value.

When I tested the above it did not seem to work, however on the page setup
dialog there is a printer button. Setting the default printers orientation
to landscape did work. However I do not know where the registry settings for
this are to do it programmatically.
 
Back
Top