Forum Moderators: open

Message Too Old, No Replies

Printing Problem IE6

         

Scally_Ally

11:47 am on Nov 3, 2005 (gmt 0)

10+ Year Member



Hi there,

I have a page that the user can print off, but the page is a little too large for A4.

My problem is that when the user prints in IE6 the page is not resized to fit on the A4 piece, but in other browsers it is resized automatically.

In the printing preferences section there is a checkbox to 'fit to print size' but as a default this is turned off.

Does anyone know of a way of dynamically checking this checkbox through a script, or any other way that i might be able to get round this problem.

Thanks

Ally

tedster

8:41 pm on Nov 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



From what I know, IE security will not allow this. Just imagine the havoc a malicious website could wreak by changing browser prefereneces without the end user's involvement.

The IE team is promising happier printing in IE7, but that doesn't help you now, I know.

directrix

11:53 pm on Nov 3, 2005 (gmt 0)

10+ Year Member



I hit this problem while modifying a fixed width site. I was fortunate that simply modifying the width from "990px" to "auto" in print mode fixed the problem.

If you have a wrapper div with a declared fixed width, try adding the following CSS. You may just be lucky that such a simple change is all you need.

@media print {
#wrapper {width: auto}
}

Scally_Ally

12:54 pm on Nov 4, 2005 (gmt 0)

10+ Year Member



thanks guys,

Unfortunately this little fix didnt work. I read an article on the upgrades that they where doing on the printing side for IE7, but alas its not here already.

Im just gonna have to get off my lazy ass and make the page fit onto an a4 page.

Thanks Again.