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. 1 1207
Hi Jason,
You may want to try (I haven't actually tried this) System.Diagnost ic.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*********@no spam.htdata.co. uk> Newsgroups: microsoft.publi c.dotnet.langua ges.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.u k 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.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-online.de!newsf eed.freenet.de! 216.196.110.149 .MISMATCH!
border2.nntp.am s.giganews.com! nntp.giganews.c om!news-hub.cableinet.n et!blueyonder!k ibo.news.demon. net!news.demon. co.uk!demon!not-for-mailXref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:214162 X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: The Roys |
last post by:
Hi
Im doing something wrong in quitting the Word.Application in my VB program.
I have
General Declarations
Dim AppWord As Word.Application
Form_Load()
Set AppWord = CreateObject("Word.Application")
|
by: John |
last post by:
Hi
I am using the Internet Transfer Control as follows;
strData = "Some data"
strHeaders = "Content-Type: application/x-www-form-urlencoded" & vbCrLf
objInet.Execute strURL, "POST", strData, strHeaders
I would like to keep the internet connection alive. What would be the syntax
|
by: John |
last post by:
Hi
I am trying to use the internet transfer control to send some data to a
site. I want my MS ISA proxy server to keep the connection alive. What
syntax should I use to send the 'keep alive' data to the proxy server? Is
any of the following any good?
objInet.Execute "http://wwww.mysite.com", "POST", "Some Data",
"Content-Type: application/x-www-form-urlencoded Proxy-Connection:
Keep-Alive" & vbCrLf
|
by: Vell |
last post by:
Hi,
i'm moving my first steps in vb.NET world and i'm getting
first troubles..
in vb6 i can start an application from Sub Main() and load
for example a form using 'set' and 'show' command. The
output for the user will be the form and the program will
still run.
In vb .NET, if i made it in the same way, will be no
|
by: t.mitchell |
last post by:
Hi,
I have a python gtk app that allows users to have one project open at a
time. I have recently discovered that projects are not being freed
when they are closed - the refcount is not hitting zero. I have used
gc.get_referrers() to track down a few culprits, but I have now found
that some of my dialog boxes are staying alive after being closed too
(and keeping a reference to the project).
e.g.
gc.collect()
| |
by: =?Utf-8?B?QWxleCBSYWtvdg==?= |
last post by:
Hi,
I work at a webdav server. And i try to use Word as a webdav client.
But I have strange problem. For some files Word sends LOCK command and
works with them well. But for others it doesn't do it. My server responses on
OPTION command. But it doesn't help.
Maybe someone can clerify the question how to tell Word if the document can
be opened not in read-only mode
|
by: ThomMCann |
last post by:
I have a problem with keeping a page alive while the server is writing large xml files to Oracle. The server time out is set to 15 minutes. I need a programmatic way to keep the jsp connection going for files that take longer. The web page displays errors and warnings that are found in the data validation process. The xml files are written to the server prior to inserting into Oracle. Sending an email back to the users with an error report...
|
by: laredotornado |
last post by:
Hi,
I'm using PHP 4.4.4. I have two domains -- www.mydomain1.com and
www.mydomain2.com. Both point to the same IP address. I have two
pages on that IP -- first.php
<?php
session_start();
$_SESSION = "hello";
?>
|
by: Dan99 |
last post by:
Hi,
First of all, I am looking for a way to force the execution of a php
script to explicitly stop when told to do so by the client
connection. I know when you hit the browser stop button php normally
stops, but it doesn't stop immediately (ie. if the script is in a
loop, it will keep going for a bit). Also, I am looking for a way to
force php to stay alive, even if the connection to the client drops.
Finally, does anyone know of a...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |