I am developing an addin for Word in C#. In order to support both Word 2000
& 2003, I had copied the appropriate Word 9.0 libraries (mso9.dll and
msword9.olb) to my development machine, which has Office 2003 installed on
it. Everything was great; I referenced the Word 11.0 libraries for the 2003
version and the Word 9.0 libraries for the 2000 version. But then I moved my
solution to another machine with (supposedly) the same configuration. I
copied mso9.dll and msword9.olb again, but this time they do not show up
under the COM tab of the Add Reference dialog. If I browse to the files,
they are added but the description says "Microsoft Office 11.0 Object
Library" and "Microsoft Word 11.0 Object Library", respectively. I don't
remember doing anything special to get these libraries to show up on the COM
tab before, but perhaps it slipped my mind. Does anyone know how I can make
this happen?
TIA
Hi
In office automation develop in .net, we will need to use interop assembly.
Office XP provide an official PIA which can be gotten from MSDN.
http://www.microsoft.com/downloads/details.aspx?FamilyId=C41BD61E-3060-4F71-
A6B4-01FEBA508E52&displaylang=en
Office 2003 provide PIA shipped with office 2003 installation program.
When we add a reference to the office program, the PIA will be used
automatically.
While before office 2000 we did not provide official PIA. It is recommended
to develop the office solution with according office version.
e.g.
build office 2000 with office interop assembly, office 2002 to office XP
pia .....
So for your scenario, I strong recommend you build two different build
version independently.
If you still have any concern, please feel free to post here.
Here are some links for your reference.
http://groups.google.co.jp/groups?hl=zh-CN&lr=&threadm=M54apYQ0EHA.3028%40cp
msftngxa10.phx.gbl&rnum=2&prev=/groups%3Fq%3DPIA%2520office%25202000%2520%25
22peter%2520huang%2522%26hl%3Dzh-CN%26lr%3D%26sa%3DN%26tab%3Dwg
http://groups.google.co.jp/groups?hl=zh-CN&lr=&threadm=6T%23nNYIwEHA.3436%40
cpmsftngxa10.phx.gbl&rnum=4&prev=/groups%3Fq%3DPIA%2520office%25202000%2520%
2522peter%2520huang%2522%26hl%3Dzh-CN%26lr%3D%26sa%3DN%26tab%3Dwg
Best regards,
Perter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
PMVT - 17 Dec 2004 16:51 GMT
Thanks for the response, Peter. I will try to create/use Office 2000 PIAs.
I'd still like to know why the Microsoft Office/Word 9.0 Object Libraries
don't show up on my COM tab, though.
> Hi
>
[quoted text clipped - 34 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "AS IS" with no warranties, and confers no rights.
"Peter Huang" [MSFT] - 20 Dec 2004 02:27 GMT
Hi
I think that is because we did not register the word 9 in the register so
the .net ide did not be aware of the word 9.0's existence.
You may try to register the msword9.olb file by using the regtlib.exe tool.
Usually we can find it in the path below.
Microsoft Visual Studio .NET (2003) Enterprise Architect 40,960 3/16/2001
oainst.cab \msdn\ie60
Microsoft Visual Studio .NET (2003) Enterprise Architect 40,960 3/16/2001
oainst.cab \wcu\ie60sp1
Best regards,
Perter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
PMVT - 21 Dec 2004 19:13 GMT
Thanks, Peter, that was it. I forgot all about regtlib. Everything is now
working as it used to. For future projects, should I create a set of Office
2000 PIAs? It seems like a waste for everone to create their own...
> Hi
>
[quoted text clipped - 15 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "AS IS" with no warranties, and confers no rights.
"Peter Huang" [MSFT] - 22 Dec 2004 03:04 GMT
Hi
Thanks for your quickly reply!
I recommend to create one, and if you want to deploy your office 2000
application, you may try to ship with office 2000 PIA.
Best regards,
Perter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.