Using Office XP Word from VB.NET

  • Thread starter Thread starter John Wright
  • Start date Start date
J

John Wright

I currently have Office 2007 installed on my development computer. My
program will open a word file, populate the document by setting data at the
bookmarks and print the document. This works just fine. However, I have
found out that 3/4 of the users in the plant are still using Office XP. So I
need to check for the version of Word and if it is lower than version 11.0
(Office XP) I need to write a similar function that will open the document,
populate the bookmarks and print out the document.

Can this be done using Microsoft.Office.Interop.Word version 11.0 (I used
this version because it works with 2007 and some users had Office 2003)?

If so, does anyone have a link to point me in the right direction to do this?

If not, what options do I have ? I need to get this fixed ASAP and it is
critical to the plant.

Thanks.

John
 
As what you does seems quite simple, my personal preference would be likely
to use late binding (possibly from a class used from my main code so that I
still have earlier binding from my main code). This way it will work
regardless of the version at least if you don't use specific features and
you have nothing special to deploy...

--
Patrice



"John Wright" <[email protected]> a écrit dans le message
de groupe de discussion :
(e-mail address removed)...
 
I do a check in the main form do determine the version of Word. if the
version is less that 11.0 (Office XP and earlier) then I jump out to a
separate class that uses late binding to open the document, fill in the data
for the bookmarks, print, and close. I prefer not to use the late binding
due to the latency, but it is a nice catch all for all versions of office.

Thank you for your suggestion.
 
Back
Top