Scenario:
When the user chooses Print Preview from Internet Explorer File Menu, before printing any report data, the Preview dialog appears correctly, however it shows the raw html code instead of displaying the preview. This behavior is found only only in Internet Explorer.

Resolution:
To resolve the issue follow the steps given below:

  • Click on Start –> Run

In the Run Box execute the following commands:
regsvr32 /i mshtml.dll
regsvr32 /i shdocvw.dll

  • Restart Internet Explorer and then try to generate print preview and it would display the page preview instead of HTML Code.