.Net assemblies / Office 2000

D

David

Hello,

I excuse myself for my bad English!

Well, I develop a .Net assemblie with Visual Studio 2005. My assemblie is
working with Word in order to create documents. It's working very well with
Microsoft Office 2003.

So, I have to use my assemblie with Office 2000 but it does not work :( I
can't declare an instance of my object in Word.

Could you help me please? what can i do?
 
C

Cindy Meister

Hi David

There are two levels you need to watch out for, here.

1. Word 2003 contains commands not supported in Word 2000. If these are
included, the code can't compile or run

2. The object libraries (tlb) provided with Word 2003 base on the Word 2003
PIAs, supplied with that version of Word. These won't work with Word 2000.
You'd need to either
- use late-binding throughout, so that you don't require any Interop
Assemblies
- compile the code with Word 2000 IAs, and distribute these to everyone
- create a separate, IA-specific version of your app for each version of
Word you target.

MS recommends the last, or the first; the second generally works, but isn't
suported by MS. In any case, you do need to have Word 2000 installed on your
development machine in order to test your code properly.

While PIAs are part of the Office 2003 setup, and 2002 PIAs can be
downloaded from the MS website, no PIAs are supplied for Office 2000. All you
can do is let Visual Studio generate a set of IAs when you select the object
library from the COM tab when creating a reference to Word. These you then
need to distribute with your application.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top