Are the Primary Interop Assemblies (PIA) for Office 2007 compatible with both 32 bit and 64 bit versions of Windows?

Are they compiled with a target of any processor?

Also, is there a way I can verify this, say by using a tool like Reflector?

有帮助吗?

解决方案

Office 2007 is a 32 bit application so you can only use interop from another 32-bit application.

This applies to both 32 and 64-bit operating systems.

Mark your application as x86 in Visual Studio (not "Any CPU").

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top