Printing and IE8

Hi folks

We’ve set up a print stylesheet on one of our sites and it works pretty nicely across the different browsers, but I’m having a real headache when it comes to IE8.

I’m posting this in the general Web Page Design forum rather than the CSS one as I’m not convinced it’s specifically a CSS problem.

The page I’m having a problem with is a pretty long page with a number of fairly chunky tables (tabular data of course!). I’ve spent a couple of days trying things out, including the fix given here: http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/b092fd0a-cb4d-4389-b323-4850a3902689/, but don’t seem to be getting anywhere.

Narrowing down the problem is proving quite difficult as I seem to get something different each time. Either it will only print the first page (should be about 5) or it will print everything but with the right hand part of the page cut off - I can’t even get the problem to be consistent!

Can anyone offer any advice with regards to printing pages that include HTML tables using IE8?

Many thanks for looking at this!
Cheers, Emily

What happens if you disable the style sheets altogether? I suspect this is a CSS problem, or one that can be fixed with CSS. It would be best to post a link to the site, though, so we can take a look. Otherwise we are just guessing. :slight_smile:

Thanks for your reply, Ralph, much appreciated. I know it’s very annoying of me not to post a link but I have concerns about posting a client website on a public forum. Sorry, I know that that limits how much help people can give. I guess I’m really just asking if anyone has found a similar problem with IE8 and printing.

I have however made a bit more progress since I posted yesterday. The page cutting off was entirely to do with the CSS - IE8 was interpreting it completely different to all the other browsers we’d tried. So that should be solveable. However, only printing the first page is much more of an issue, which it seems to be consistently doing now. Taking out the print stylesheet doesn’t help that, but your asking has made me realise that I haven’t tried disabling all the stylesheets, so I’ll give that a go.

Thanks again for your reply, it’s much appreciated!
Cheers, Emily

Off Topic:

A good alternative—assuming you have your own website—is to post an example page somewhere on your own site that has client info stripped out. That can be a good way around the issue.

Printing only the first page is often caused by floats or positioned elements, which become pinned to the page and not allowed to overflow onto the next one.

It’s generally a bad idea to use floats or positioning in print stylesheets for anything other than small elements like illustrative images or box quotes, precisely because they have a nasty tendency to go haywire when they meet a page break.