I am able to export Rich text from my VB.net app and export it to Microsoft Word; but, I want some error control if the user using the app doesn't have Microsoft Word. Right now, the app just gives a nasty .NET error message that the end user wouldn't know what is going on.
This is the code I have so far, and it isn't working, any idea how to do this?
oWord = CreateObject("Word.Application")
If CreateObject("Word.Application") = False Then MessageBox.Show("My Silly attempt at Error messages.")
I want it to show the above message and quit the operating of trying to export to Word.
Question
thollian
Hello,
I am able to export Rich text from my VB.net app and export it to Microsoft Word; but, I want some error control if the user using the app doesn't have Microsoft Word. Right now, the app just gives a nasty .NET error message that the end user wouldn't know what is going on.
This is the code I have so far, and it isn't working, any idea how to do this?
oWord = CreateObject("Word.Application") If CreateObject("Word.Application") = False Then MessageBox.Show("My Silly attempt at Error messages.")I want it to show the above message and quit the operating of trying to export to Word.
Link to comment
Share on other sites
17 answers to this question
Recommended Posts