|
Printing Charts in IE |
Posted by Bob G on Jun-25-2013 02:06 |
|
I have created a few basic charts and found that they seem to print fine from Google Chrome, but when I try to print the same chart in IE 9, I just get a broken graphic.
Any ideas what could be wrong?
Thanks!
Bob |
Re: Printing Charts in IE |
Posted by Peter Kwan on Jun-25-2013 05:39 |
|
Hi Bob,
In some browsers (such as IE), printing can be imagined as consisting of the follow steps:
(i) Create a hidden browser window of the size of the paper
(ii) Copy the URL from the visible browser window to the hidden browser window to reload the page
(iii) Send the rendered contents of the hidden browser window to the printer.
For your case, the problem often occurs at (ii). Can your web page be reloaded by copying the URL to a new browser window?
For example, web pages that are handling Form POST may not be printed correctly, because usually they may not be reloaded using the URL only (they need Form POST data). Similary, web pages that modifies the system state (such as changing or deleting session variables) may or may not be printed correctly, because the system state may have been changed during reloading.
If you are using Form POST, you may consider using Form GET so your web page can be reloading using the URL only. Or you may need to design your web page such that it can work correctly using the URL only, without any Form POST data.
As an experiment, you may open a new browser window, the copy and paste the URL from the browser address bar to the new browser window, then press enter. If the page can load without user intervention, then it should be printable. If the page needs user intervention (such as prompting you to "repost" the data), then it is not printable.
Hope this can help.
Regards
Peter Kwan |
|