Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Unless you want to use any of the newly added objects and methods of the Office 2007 object model, it is fine to build referencing the Office 2003 PIAs, just make sure the correct version of the PIAs is deployed on the target system:</p> <blockquote> <p>Another way around this problem is to remove the dependency on the later PIAs. Because of the high degree of backwards compatibility in Office, you can safely assume that if your add-in works on Office 2003 (with the Office 2003 PIAs), then it should also work on Office 2007 (with the Office 2007 PIAs). </p> <p>(from <a href="http://blogs.msdn.com/andreww/archive/2008/06/03/add-ins-for-multiple-office-versions-without-pias.aspx" rel="nofollow noreferrer">Add-ins for Multiple Office Versions without PIAs</a> by Andrew Whitechapel) </p> </blockquote> <p>Otherwise I would recommend you the following blog articles by Andrew Whitechapel: <a href="http://blogs.msdn.com/andreww/archive/2007/06/15/can-you-build-one-add-in-for-multiple-versions-of-office.aspx" rel="nofollow noreferrer">Can you build one add-in for multiple versions of Office?</a> (See the BIG warning that this is not officially supported by Microsoft). </p> <p>Another option where you do not need the PIAs (this makes deployment a lot easier) would be to use <em>ComImport</em> together with late binding. This is however slower than using the interop assemblies, but if the automation code is not on the fast path this might be a good solution. You'll find an explanation how to implement this in the same blog post: <a href="http://blogs.msdn.com/andreww/archive/2008/06/03/add-ins-for-multiple-office-versions-without-pias.aspx" rel="nofollow noreferrer">Add-ins for Multiple Office Versions without PIAs</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload