If one is developing a .NET application, how can I develop an application
that uses COM automation that targets multiple versions of Word? For
example, the signature for the Document.Open method is different from
version 9 to version 11 (and I'm sure there are other variations as well),
and I'm wondering if there's some easy way to deal with it.
At present I'm only concerned with supporting 9-11 (i.e. Word 2000, XP, and
2003), though I'd like to be flexible enough to deal with future versions as
well. How are developers dealing with this sticky situation now?
evan stone | software engineer
----------------------------------------
santa rosa, ca, usa
Ken Tucker [MVP] - 16 Sep 2005 01:12 GMT
Hi,
I believe the next version of word will save the files in xml
format. I would make a xml word document. That way you are not dependant
on word being installed. If the user isnt using word 2003 or later I would
transform the xml to an rtf. Just my 2 cents worth.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_wd2003_ta/h
tml/odc_WD_VBNETtoRTF.asp
http://www.microsoft.com/downloads/details.aspx?familyid=fe118952-3547-420a-a412
-00a2662442d9&displaylang=en
Ken
----------------
> If one is developing a .NET application, how can I develop an application
> that uses COM automation that targets multiple versions of Word? For
[quoted text clipped - 11 lines]
> ----------------------------------------
> santa rosa, ca, usa