建议大家在微软的组件出现问题时,在GOOGLE上搜索解决方案,一般来说,总有结果:
解决方案就是在命令行输入一行这个:
regsvr32 "C:\Program Files\Common Files\Microsoft Shared\OFFICE12\htmlchkr.dll"
如果是OSS 2007 就是红字,如果是OSS 2010,这个红字要替换成:office14
笔者找到的解决方案英文附后:
Question
- I have a few rich text fields in a browser enabled infopath 2010 form. When I tried to submit it an error apppeared.
Retrieving the COM class factory for component with CLSID {52F5D46F-CBEA-4D07-BCB7-7296853F0CF2} failed due to the following error: 80040154. System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {52F5D46F-CBEA-4D07-BCB7-7296853F0CF2} failed due to the following error: 80040154. at Microsoft.Office.InfoPath.Server.DocumentLifetime.EventRichTextChange.HtmlToCleanXHtml(String html, Boolean makeDomCompatible)
.....
I deleted all rich text fields the form was submitted successfully.
Is this a bug of Infopath 2010? Is any ways to use rich text fields?
Best Regards,
Malnor