Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm having this problem in a Sharepoint Extranet site. Several long/wide forms and grids are getting their right sides hacked off when printed. In IE7, Shrink to Fit solves this problem. However in IE8, when I go into Print Preview, it SAYS it's set Shrink to Fit but it is not actually shrinking.

share|improve this question

migrated from stackoverflow.com Oct 29 '09 at 1:15

This question came from our site for professional and enthusiast programmers.

    
I am experiencing this as well. Strange part is that if you change orientation to landscape and then back to portrait in the print preview window, it shrinks to fit perfectly. Very frustrating. –  Josh Stodola Dec 22 '11 at 13:11
    
I know it's not a solution, but what if you try to print your file into a PDF printer ? Is the right side still missing ? I'm not sure how printers works with windows, but maybe the printer is incapable of this. If it prints well into PDF, then try to print the PDF itself. (This way we'll know if the problem comes from Windows or the printer itself.) –  PatrickCUDO Dec 27 '11 at 17:40
    
@PatrickCUDO yes printing to PDF or XPS file both result in the same truncation –  Josh Stodola Dec 29 '11 at 6:04

4 Answers 4

Unfortunately, in IE8 , shrink to fit is broken

http://answers.microsoft.com/en-us/windows/forum/windows_7-hardware/printing-problems-in-internet-explorere-8-will-not/8ca793aa-1a0b-42cc-9ec3-720a595c3874

The solution suggested is not good enough because users cannot go and change every time, especially if they are non techie.

The solution for this is to change the compatibility mode. So in your page , if you set this

<meta http-equiv="X-UA-Compatible" content="IE=7" > 

it should work. This cannot be set through css

share|improve this answer
1  
That's awesome - worked like a charm. I don't really like the idea of forcing IE7 emulation, but I like the idea of supporting IE in the first place even less; so kudos. –  redEvo Jun 4 '12 at 20:02

Try using Compatibility Mode. I had a similar problem and it seemed to fix it.

share|improve this answer
1  
This is not a solution –  Josh Stodola Dec 29 '11 at 6:05

We are having the opposite problem; our pages display correctly in "real IE8" (or IE9) mode, but we have been having continual problems at a customer site where they report the printed page is shrunken when "shrink to fit" is set; so I have now tried running the site with "compatibility mode" turned on, and I see the pages being shrunken as well.

We've been over the site with a pretty fine toothed comb and there seems to be no reason for the pages to shrink, they are well within a standard page width.

This gives us a handle on what the problem is, and if others are experiencing shrinkage problems, maybe getting OUT of compatibility mode is the answer.

share|improve this answer

I had this problem in a company intranet site after we changed from IE7 to IE8. It turns out that there was a specific print-only style declaration that was setting the font size to 1.5em--too big for the printed page to work right. I solved it by changing it to 1em.

Whether or not you have a style set in the page that is causing a problem, you can try adding print-only styles to fix the problem, something like this:

@media print {
body {
   font-size:0.75em;
}
}

For me it didn't seem to matter, below a certain size, what value I used for the ems--as soon as it was small enough, the printed page started to display correctly.

The microsoft forum page provided by vsingh says:

Some webpages specify exactly where text should print on the page. If the webpage you're printing specifies exactly where the text should print, Shrink To Fit will not work.

This leaves me wondering what exactly it is about the stylesheet that is supposedly providing exact specification of location (and if anyone has additional thoughts on this please comment), because there isn't a single width, height, 100% or any other positional or locational css--just the font size. In any case, I was able to work around those issues by reducing the font size specifically for printing only.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.