I have been suffering this problem badly recently (see the problem in the figure) every time when I tried to print the webpage from IE, and even worse that I can't get anything printed off from Outlook or Outlook Express. Simply anything related on HTML can't be printed. I guess some sort of Adware or Spyware got passed through to my computer the other day and this problem immediately happened right after I ran the anti-spyware software and cleaned them up. I even ran three major anti-spyware software, Microsoft Anti-Spyware, LavaSoft Ad-Aware, and Spybot, to see if it fixed the problem up but unfortunately no.
So the best guess is that either IE system file got corrupted or some registry key settings got messed up. I googled by putting the whole URL message “res//c:\windows\system32\shdoclc.dll/preview.dlg”, and surprisely got too many information related on this with various line number in it and only a few are exactly the same as what I had. Followed some articles' instructions like checking registry key, re-register some dll files, but none of them fixed my problem. Finally, on Microsoft IE newsgroup I found one post that had the exactly same message as I have and got fixed by doing a slight differently than other ones I found on Google. Magically, it fixed my problem by following their instructions which likes below:
1. Re-installing the latest version of Microsoft Script, http://www.microsoft.com/downloads/details.aspx?FamilyID=c717d943-7e4b-4622-86eb-95a22b832caa&DisplayLang=en;
2. Re-register the following DLLs:
jscript.dll
vbscript.dll
urlmon.dll
mshtml.dll
msjava.dll
actxprxy.dll
oleaut32.dll
browseui.dll
shell32.dll
3. Reboot my computer to take all changes effect.
The jscript.dll and vbscript.dll are not listed on other articles that I found from Google, which is why I said it fixed the problem a slightly different. And also, after I did search these 2 files on my computer, I found the size of these two files are slightly different than from other no problem computer. So I copied these 2 files over as well from good computer but I am not sure if this helped to fix the problem. Anyway, the problem that has been annoying me for a couple of weeks has been gone now. I am back in business again without re-formatting my computer which might take me couple of weeks to fully configure it. Big thanks to Robear Dyer (PA Bear) who pointed out the great solution below and helped me out on IE newsgroup.
Error 228 when trying to print in IE 6.0 with XP
See this post at Microsft IE Newsgroup here