English 中文(简体)
利用Interop.MODI Throws 0x80040154 例外
原标题:Using Interop.MODI Throws 0x80040154 Exception

I am currently trying to implement the Interop.MODI.dll (From Microsoft Office) to use the Image -> Text features it should Provide. But when doing

var modi = new MODI.DocumentClass();

我收到了:

“COMException 80040154 with CLSID{40942A6C-1520-4132-BDF8-BDC1F71F547B}”。

www.un.org/Depts/DGACM/index_spanish.htm 我为解决这一问题做了哪些努力?

I registered the DLL using the regasm tool: -Problem still exists

I tried setting the BuildPlatform to x86: -Problem still exists

www.un.org/Depts/DGACM/index_spanish.htm 我使用“2010年视觉演播室”,最后使用“Windows 7”专业64Bit & 微软公司2007年安装了。

EDIT:I找到解决办法:

I needed to install the "MS-Office-Document-Imaging" feature to MS Office to get it working. (Software -> MS Office (rightclick -> edit) -> Add Features -> Microsoft Office Document Imaging)

最佳回答

Try to check if Microsoft Office Document Imaging Components are installed correctly.

您可以通过修改Microsoft Office安装设施来做到这一点。

Software > Edit Microsoft Office Installation > Add/Remove Components. Be sure, that Office-Tools > Microsoft office Document Imaging is installed completely!

Furthermore, if you are developing on a 64-bit machine, change your project output from any CPU to x86

问题回答

Configure the IIS (Internet Information在题为“Internet Informationks”的应用程序库+ Property + Superior formation option to can 32-bit applications to TRUE





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签