Click to See Complete Forum and Search --> : Browser setting?


chadorbaf
03-05-2003, 06:50 PM
Hi,

I need to know if there is any way to set/reset browser (IE) page setup setting programmatically. Or even any way to back the browser page setup to defalut.

More info:
We have print option on each screen/page in our Jsp Web Application . The user on each screen can choose the PRINT option from the browser ( IE ) to print the document that already is constructed for that screen/page.
By default the page header & footer come on each page on printer. For some of the screens/pages the user doesn't want the header & footer, so he/she has to go to the page setup on browser and delete them manually. This cause the browser to be set for no header & footer for other screens as well. And this is the problem that got my client tired of.
So, i am looking for an answer to set/reset the browser setting more easiler.
Any idea/help would be really appreciated.
Thanks.

chadorbaf
03-07-2003, 12:33 PM
Thanks Dave, Hope new release give us some flexibility.

chadorbaf
03-11-2003, 05:02 PM
Dave,
How about setting Potrait/land scape for printting via browser. Is any way to do thie programmatically?
I think the answer is no based on your note. But i am asking again just to make sure.Thanks.

pyro
03-11-2003, 05:11 PM
Actually, you can, using CSS:

@page {size: 8.5in 11in landscape; margin: 0.5in}

That will tell the browser to print and 8.5 by 11 inch sheet in landscape mode with .5 inch margins.

chadorbaf
03-11-2003, 06:20 PM
Pyro,
Where(on page) do i have to put this statement. Would
appreciated if you could provide me full code.
Thanks.

pyro
03-11-2003, 06:48 PM
<head>
<style type="text/css">
@page {size: 8.5in 11in landscape; margin: 0.5in}
</style>
</head>

chadorbaf
03-11-2003, 07:06 PM
I tried this with no success. dose this work on IE >5 ?

pyro
03-11-2003, 07:14 PM
Not sure about browser support. Here is the spec. http://www.w3.org/TR/REC-CSS2/page.html#page-size-prop