nzmike
New member
Hi all,
I'm doing an enhancement to a contacts management system I wrote for a client in VB.Net with v1.0 of the framework. Part of the enhancement is to be able to hit a button on the contact details tab to create the start of a letter in Word (ie: with the contact's address and date at the top and a salutation).
The problem I have is that there are 100's of users of this app and while most of them have Office 2000 some of them have Office XP and some even have Office 2003. So what I want to do is somehow find out, when the user presses the "Write Lettter" button if Word is installed on their machine and if so which version, then start it up, create a new document and insert the letter text into it. Can I do any/all of this without a reference to the Word OCX in the project and if so how?
Another Q - if I include a reference to say the Word 2000 OCX in the project would Word still start up on a PC running Office XP or 2003? ie: is the OCX standalone or does it still Word 2000 to be installed locally? (I strongly suspect it's the latter.)
Hope someone can point me in the right direction because I'm really not sure how to start doing this!
TIA...
Mike
I'm doing an enhancement to a contacts management system I wrote for a client in VB.Net with v1.0 of the framework. Part of the enhancement is to be able to hit a button on the contact details tab to create the start of a letter in Word (ie: with the contact's address and date at the top and a salutation).
The problem I have is that there are 100's of users of this app and while most of them have Office 2000 some of them have Office XP and some even have Office 2003. So what I want to do is somehow find out, when the user presses the "Write Lettter" button if Word is installed on their machine and if so which version, then start it up, create a new document and insert the letter text into it. Can I do any/all of this without a reference to the Word OCX in the project and if so how?
Another Q - if I include a reference to say the Word 2000 OCX in the project would Word still start up on a PC running Office XP or 2003? ie: is the OCX standalone or does it still Word 2000 to be installed locally? (I strongly suspect it's the latter.)
Hope someone can point me in the right direction because I'm really not sure how to start doing this!
TIA...
Mike