.netms-officeoffice-interopoffice-pia

Primary Interop Assemblies (PIA) for Office 2007 - 32/64bit?


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?


Solution

  • 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").