Question Automate different versions of Word from Visual Basic .NET

FlashOwl

Member
Joined
Jul 15, 2011
Messages
9
Programming Experience
10+
I need to create a word document from vb.net (2008) and have found this very useful page here... How to automate Word from Visual Basic .NET to create a new document
The problem I have is that I have office 2007 on my machine but my customer has many machines with many different versions of office.

If I reference the Microsoft Word 12.0 Object Library in my code is it going to fall over when used on a machine with Office 2010 on it? Is there a way to dynamically set the version at run time so it can work on different versions of Word?

Thanks in advance.
 
Top Bottom