473,320 Members | 1,572 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

WinWord via CreateObject

I have a small Access application that performs Microsoft mail
merges. To reduce the time it takes to print to Word, I create a Word
object, via a call to CreateObject, when my program is initially
started. My dilemma--how do I terminate this instance of Microsoft
Word when my program finishes executing? I could easily make a call
to GetObject to obtain a reference to A copy of Microsoft Word. But
how do I know it is the instance that I originally created? Should I
just terminate every instance of Microsoft Word when my program
quits? Might this not cause stability issues for other applications?
How do you guys handle this situation? Thanks for your help.

Vincent

May 10 '07 #1
1 1644
Try this:

http://www.mvps.org/access/api/api0007.htm

Google fIsAppRunning for examples.

For added light reading, Google appisrunning

There's bound to be something you like, and I suspect you'll get a few more
useful replies here as well.

Cheers,
Alan Carpenter

Vincent <an**********@verizon.netwrote in
news:11**********************@y80g2000hsf.googlegr oups.com:
I have a small Access application that performs Microsoft mail
merges. To reduce the time it takes to print to Word, I create a Word
object, via a call to CreateObject, when my program is initially
started. My dilemma--how do I terminate this instance of Microsoft
Word when my program finishes executing? I could easily make a call
to GetObject to obtain a reference to A copy of Microsoft Word. But
how do I know it is the instance that I originally created? Should I
just terminate every instance of Microsoft Word when my program
quits? Might this not cause stability issues for other applications?
How do you guys handle this situation? Thanks for your help.

Vincent
May 10 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Tony Roost | last post by:
I have created a test VB.Net form that will use MS Word to check the spelling of text in an input box The test application runs without a problem and I quit the word application at the end of the...
2
by: Helene Day | last post by:
I did some experimentation in VB6 and VB.Net. With both applications, setting my Word.Application to nothing will not release winword.exe from memory. Also, I may have multiple copy of them......
0
by: Just D. | last post by:
Guys, I'm writing the Windows Application and one of the ideas is to use a RichText field to store/show some formatted text, probably with pictures. The problem is that this RichEdit control is...
2
by: Richard Loupatty | last post by:
I tried to start winword.exe from an aspx (after granting things with dcomcnfg) and i can see winword.exe showing up in the taskmanager, but i don't see the word-application itself. I did set...
3
by: Dean Slindee | last post by:
The code below is being used to launch WinWord.exe from a VB.NET program. Word launches, but displays this error message: "Word has experienced an error trying to open the file. Try these...
3
by: James | last post by:
Howdy. I'm having difficulty getting winword.exe processes to die on our development server when using SET objWord = CreateObject("word.application") from an .ASP page. This problem exists on...
1
by: tvjraman | last post by:
Visual Basic 6 I use Getobject() to get the object of Word application. I always get the first instance of Winword.exe I have a macro in another instance of Winword.exe I need to get the...
2
by: Dean Slindee | last post by:
Using this statement to utilize the spell checker in WinWord: WinOffice.clsWord.SpellChecker(txtNote.Text) 'this does not work because no main window is displayed 'Dim proc =...
2
ajester
by: ajester | last post by:
I need WinWord to look like it's being executed from the correct path: C:\Program Files\Microsoft Office\Office12\WinWord.exe when in reality it's being launch from a Java app using the path...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.