我目前正在尝试实现Interop.MODI.dll(来自Microsoft Office)以使用它应该提供的图像 - >文本功能.但是在做的时候
var modi = new MODI.DocumentClass();
Run Code Online (Sandbox Code Playgroud)
我明白了:
"带有CLSID的COMException 80040154 {40942A6C-1520-4132-BDF8-BDC1F71F547B}".
我有什么办法解决这个问题?
我使用regasm工具注册了DLL:-Problem仍然存在
我尝试将BuildPlatform设置为x86:-Problem仍然存在
我使用Visual Studio 2010 Ultimate和Windows 7 Professional 64Bit并安装了Microsoft Office 2007
编辑:我找到了解决方案:
我需要在MS Office中安装"MS-Office-Document-Imaging"功能才能使其正常工作.(软件 - > MS Office(右键单击 - >编辑) - >添加功能 - > Microsoft Office Document Imaging)