- Home
- Internet Explorer 6
- Print Preview displays html code instead of displaying the page preview
Print Preview displays html code instead of displaying the page preview
- Copyright © 2008 Ramesh Srinivasan
- Internet Explorer 6
Symptom
When you choose Print Preview from Internet Explorer File menu, the Preview dialog appears correctly, but may show the raw html code instead of displaying the preview.

Resolution
Click Start, Run and execute these commands:
- regsvr32 /i mshtml.dll
- regsvr32 /i shdocvw.dll
Enjoyed the post? Subscribe to our feed to get frequent updates. We feature Tips, Troubleshooting information, Scripts and Utilities for Microsoft Windows Operating Systems! (Click on the Feed icon on the left and subscribe.)
If you prefer an Email subscription, here is the subscription form:
Spread The Word
10 Responses to "Print Preview displays html code instead of displaying the page preview" 
|
said this on 25 Apr 2006 10:39:28 AM PDT
very helpful.helped me out in many occassions.thank you.
|
|
said this on 14 Jul 2006 10:38:26 PM PDT
My print and print preview still shows the html code after running these twice and restarting/rebooting. Any other suggestions?
|
|
said this on 17 Jul 2006 7:40:26 PM PDT
I tried this and the problem remains.
|
|
said this on 16 Sep 2006 3:22:58 PM PDT
You can automatize the process using BAT, just paste on Notepad and save as a .bat file.
REM #Register shdocvw
regsvr32 /i shdocvw.dll
REM #Register mshtml.dll
regsvr32 /i mshtml.dll
|
|
said this on 18 Feb 2007 5:14:04 PM PDT
Just try this........
Open Internet Explorer
Click on tool and select Internet options.
Select General tab and click on Accessibility button.
Check the box "Ignore font styles specified on Webpages" and "Ignore font sizes specified on Webpages" and click on OK.
|
|
said this on 25 Feb 2007 6:38:51 PM PDT
Tried all these and nothing works....help!
|
|
said this on 15 Apr 2007 3:16:04 PM PDT
I know it's been a while since this thread when idle, but I had this same problem and could not find any solution to it. The strange part was it worked ok for one user but not for another. And it was driving my wife (the user with the problem) crazy!
The key was that the file type association was missing for the user with the problem. I tried to add it through "folder options" but it would not "stick" even though the user was an administrator.
I tried to edit the registry manually (as the problem user) and found that I could not edit the HKEY_CLASSES_ROOT.htm (or .html) registry keys. It said I didn't have permission! By going back to the user that didn't have the problem I found that the registrey key permissions were wrong (excluding everyone but the working user). When I set them back to something normal (using a nearby registry key as a template) everything worked again.
I have no idea how this all happened, and can't imagine that this is what is causing other people's grief, but it's worth a look.
|
|
said this on 26 Sep 2007 3:07:33 PM PDT
I helped my daughter with html print preview by internet options,advanced tab,security tab,
tick let avtive content run on my computer
|
|
said this on 21 Jan 2008 3:49:30 PM PDT
I WISH my problem was limited to te preview window, but it is the opposite - Preview appears to be fine, but the actual printing is all HTML
|
|
said this on 29 Mar 2008 1:31:37 PM PDT
Have seen this on a few different workstations recently. In most cases registering the DLL's fixed the problem, but in one case received an error when trying to register mshtml.dll that an entry load point was not found and the DLL does not load (something to that effect). What fixed the problem was using the Set Program Access Controls from the Start Menu (or top of All Programs list) and changing Default Browser to IE. After doing this Print/Preview no longer in html code.
|

Author)