By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,164 Members | 850 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,164 IT Pros & Developers. It's quick & easy.

Keeping my Word App Alive

P: n/a
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.
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
--------------------------------------------------------------------
This reply is provided AS IS, without warranty (express or implied).

--------------------
From: Jason James <ja*********@nospam.htdata.co.uk>
Newsgroups: microsoft.public.dotnet.languages.vb
Subject: Keeping my Word App Alive
Date: Mon, 05 Jul 2004 16:18:47 +0100
Lines: 21
Message-ID: <s4********************************@4ax.com>
NNTP-Posting-Host: 80.177.94.62
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: news.demon.co.uk 1089040854 20011 80.177.94.62 (5 Jul 2004 15:20:55 GMT)
X-Complaints-To: ab***@demon.net
NNTP-Posting-Date: Mon, 5 Jul 2004 15:20:54 +0000 (UTC)
X-Newsreader: Forte Free Agent 1.93/32.576 English (American)
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed 00.sul.t-online.de!t-online.de!newsfeed.freenet.de!216.196.110.149.MISM ATCH! border2.nntp.ams.giganews.com!nntp.giganews.com!ne ws-hub.cableinet.net!blueyonder!kibo.news.demon.net!n ews.demon.co.uk!demon!not-for-mailXref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:214162
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

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.

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.