解决方案:带格式化文本控件( RichText)的模板如果在InfoPath的浏览器中加载可能出现 COM 组件的80040154错误

 

建议大家在微软的组件出现问题时,在GOOGLE上搜索解决方案,一般来说,总有结果:

 带格式化文本控件( RichText)的模板如果在InfoPath的浏览器中加载,可能出现 COM 组件的80040154错误 
中错误在作者的IE上显示是如下一串字串 :
 
检索 COM 类工厂中 CLSID 为 {52F5D46F-CBEA-4D07-BCB7-7296853F0CF2} 的组件时失败,原因是出现以下错误: 80040154。
 

解决方案就是在命令行输入一行这个:

regsvr32 "C:\Program Files\Common Files\Microsoft Shared\OFFICE12\htmlchkr.dll"

如果是OSS 2007 就是红字,如果是OSS 2010,这个红字要替换成:office14

笔者找到的解决方案英文附后:

Question

  • 解决方案:带格式化文本控件( RichText)的模板如果在InfoPath的浏览器中加载可能出现 COM 组件的80040154错误                    
    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

上一篇:iOS Interface Builder:在.xib文件中加载另一个.xib文件


下一篇:FileUpload 上传文件,并实现c#使用Renci.SshNet.dll实现SFTP文件传输