I don't know how familiar any of you are with printing on the web, but i have quite a problem.
The pages we need to print work just fine in every other browser, but in IE7 if i call window.print() it seems to default to "shrink to fit", causing everything to be shrunken - which stinks since there are bar codes.
I've been searching around and everything keeps bringing me back to forums.microsoft.com/MSDN/ShowPost.aspx?PostID=983052&SiteID=1 - which isn't very helpful since people are just posting snippets of code.
now has anyone come across this issue and found a solution that doesn't involve a hotfix?
poliguin 2008.05.06, 08:45PM — IE7 and print
OvineWorrier 2008.05.08, 07:12PM —
Wow.
Not got round to playing with this till tonight. I'd never noticed. How annoying.
poliguin 2008.05.09, 02:01AM —
here's the f'd up thing.
i had it working - in all browsers except ie7. now i played with it and played with it and played with it more. basically the print job has the same thing printed twice with a message in between.
ie:
[top section]
message
[top section repeated]
btw, there's a patch for it - if you're one of the people smart enough to actually realize the "enhancement" (ms reps actually refer to the "scale to fit" as an enhancement). this patch allows the user to specify the default printing size to be something from the install default of "scale to fit". but the kicker is that if you're one of many people that prints from an iframe, the default for ie, not the patch, is used - ie, when printing from an iframe, the default is always going to be "scale to fit". lovely "enhancements"
it was eventually agreed upon to get rid of the print job on the bottom. once that was done away with all of a f'n sudden the job printed as it looked on the web. wtmf???????????????????
now i just need to adjust the containing element's cm based on browser, which is a hell of a lot easier.
bottom line - var headache = (web + print) ? true : false;