Question Automate different versions of Word from Visual Basic .NET


Jul 15, 2011
Programming Experience
I need to create a word document from (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