Re: Word object library



Hi Matthias,

I'm developing a word add-in which I want to distribute. The add-in
needs a reference to the Microsoft Word Object Library.
As I have installed Office 2007 beta for testing, the Microsoft Word
12.0 Object Library is included with the setup project. But I want the
add-in to run on every Word version, from word 97 (8.0) till Word 2007
(12.0).

It seems that the dll-versions are not downward-compatibe?

How can I achive that the add-in runs on any word version? Do I need
to include all Microsoft.Office.Interop.Word.dll versions? And if so,
how does Windows/Word know which one to use? Do I have to set anything
up?

Word 97 doesn't have the interface to support COM Add-ins, so you can
scratch that off your list...

Managed code interfaces with Office COM components using "Interop
Assemblies" (IAs). For Word 2002 and later, Microsoft has provided
Primary IAs (PIAs) that are optimized to work with that version of Word.

For earlier versions, you can use TlbImp.exe to generate your own set of
IAs and distribute it with your solution.

Because each version adds functionality, if you program against a later
version it will contain and reference things not available in the older
version. The Office teams try very hard to ensure backwards
compatibility, so something developed against an earlier version can -
if you're lucky! - be used with newer versions.

IOW, you can try programming your SHARED Add-in (not VSTO, that's only
supported back to Word 2003) against Office 2000, generating and
distributing the IAs with it.

Note, please, that Microsoft does not support this scenario. They
recommend a separate solution for each version you support.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :-)

.



Relevant Pages

  • Help! Im getting error messages too much-cant open Resume Wizard
    ... Okay, I was getting help from HP online support almost all day, but they ... I did the resume w/ the 'resume wizard'. ... assigning your request to a support analyst. ... Microsoft Word document and try 2 open resume wizard, ...
    (microsoft.public.word.docmanagement)
  • Re: vb office automation questions
    ... I have created my own IAs based on Excel ... release instead of needing to go back to the code and add new reference then ... for each version you intend to support. ...
    (microsoft.public.office.developer.automation)
  • RE: Opening a Word Document from Access
    ... Do you have reference to Microsoft Word 11.0 Object Library? ... > Dim objword As Word.Application ... > ' Automation Error - The Server Threw An Exception ...
    (microsoft.public.access.formscoding)
  • Re: Unable to create Word 2003 document using Automation after deinstallation MS Office 2007
    ... MS Office 2007 was installed onto the server the first, afterwardsMS ... code does the tries to run Microsoft Word 2003 exception ... I believe under this scenario the reference to the Office 2007 PIAs is ...
    (microsoft.public.office.developer.automation)
  • Re: Installation of program that uses Microsoft.Office.Interop
    ... reference to Microsoft.Office.Core and a reference to Microsoft Word I ... But when I install the program on a computer running Windows ME ... Is there a problem with using these DLLs above generated by Visual Studio? ...
    (microsoft.public.dotnet.languages.vb)