Those two articles were very helpful. I had read the one about writing
automation clients for multiple versions of Word but had not yet read the
one on binding. Judging from the two articles, I need to reference the
earlier version in my project rather than use late binding. I guess the
problem I am having then is that I do not know how to load the Word 2000
type library on my system so that I can reference it without installing ht
eentire application. Can you point me in the right direction regarding
that?
Thanks,
Ken
> Hi Ken,
>
[quoted text clipped - 26 lines]
> Get Secure! -- www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
Ken Madden - 07 Nov 2003 20:11 GMT
I previously tried just browsing to the file and referencing it without
registering it and that did not work. The properties of the reference kept
showing as version 11 rather than 9 since I have Word 2003 loaded.
I think I figured it out but would love to hear back as to whether ot not I
took the correct approach. I grabbed MSWORD9.OLB off the Office 2000 disk
and copied it to my machine. I then used regtlib to register the library so
that it then became available from the COM Reference list in VS.NET. Now it
shows in VS as Microsoft word 9.0 Object Library. In addition, the Open
command is now expecting fewer parameters as it should.
I have now tested the application on a machine running Word 2000 as well as
Word 2003 and it is working. I just want to verify that I took the proper
steps.
Thanks,
Ken
> Those two articles were very helpful. I had read the one about writing
> automation clients for multiple versions of Word but had not yet read the
[quoted text clipped - 39 lines]
> > Get Secure! -- www.microsoft.com/security
> > This posting is provided "as is" with no warranties and confers no rights.
Tian Min Huang - 09 Nov 2003 13:17 GMT
Hi Ken,
Thanks a lot for your update. You are correct that you should register the
typle library of Word 2000 and reference it in the C# application.
Have a nice day! :)
Regards,
HuangTM
Microsoft Online Partner Support
MCSE/MCSD
Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.