Keeping my Word App Alive

  • Thread starter Thread starter Jason James
  • Start date Start date
J

Jason James

Hi All,

I have created a class that references
MS Word. The class will happily control
Word, adding text, etc.

However, when I have finished with the VB
app I want to close the app, but not Word
so that user can continue on their own.

If I release my word object and set it to nothing
then MS Word closes also.

Is there a way of releasing MS Word from
the control of my VB app so that I can
continue to use it even after the VB app has
terminated?

Thanks,

Jason.
 
Hi Jason,

You may want to try (I haven't actually tried this) System.Diagnostic.Process (or VB Shell) to start Word, then use GetObject to get the instance.

Hope this helps,
Craig VB.Net Team
 
Back
Top