In our web application, we have print functionality for a couple of our pages and the approach we take is to put the current page’s content in a globally available iframe’s document and print the iframe (using Javascript). This works totally fine in Firefox but in IE it prints the iframe in a very small font, almost unreadable.
All the CSS’s applied in both the browsers are same, I ensured that the HTML being printed is not overflowing in any way (making IE to fit the content or something)…and still IE print is very small. Interestingly, if I change the printing logic to write to a new window and then do window.print(), everything works fine in IE as well and the font is as big as required/specified by CSS.
Has anyone faced a similar problem with iframe.print() in IE?
Thanks for the help.
Nitin
Final solution that I adopted was to use window.print() instead of iframe.print().