473,509 Members | 2,526 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Word in TaskManager - not opened in VB.Net

My application opens, updates, saves & closes an MS Project file. The
module/form that this code is in has no reference to a Word application
(although other modules that are not called from this one do).
I'm finding a new instance of Word in the Task Manager everytime I run this
code.

Any ideas on preventing it from opening?
The code to Open/Close project follows.

Dim pjApp As New MSProject.ApplicationClass

Dim sTemp As String = sPrjPath & "Template.MPP"

pjApp = CreateObject("MSProject.Application")

pjApp.Visible = False

pjApp.FileOpen(sTemp, False, , , , , True, , , , ,
MSProject.PjPoolOpen.pjPoolReadOnly)

pjApp.ProjectSummaryInfo(, sProjNm, sProgram, sLead, "Company Info", , , ,
dtRqstDt)
pjApp.SelectTaskField(0, "Name")

pjApp.SetTaskField("Name", sProjNm)

pjApp.FileSaveAs(sMPP)

pjApp.FileCloseAll(MSProject.PjSaveType.pjDoNotSav e)

pjApp.Quit()

System.Runtime.InteropServices.Marshal.ReleaseComO bject(pjApp)

pjApp = Nothing
One other question, I use similar code in another module and Project is not
visible, yet in this module it is visible. Any ideas on that one?

Thanks,
Taras
Nov 22 '05 #1
0 831

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

Similar topics

0
882
by: Taras Pich | last post by:
My application opens, updates, saves & closes an MS Project file. The module/form that this code is in has no reference to a Word application (although other modules that are not called from this...
0
2361
by: Julia Baresch | last post by:
Everyone, I posted the message below back in February and didn't get any information. I also wasn't able to find any documentation in MS Help, web site, or other groups. I'm posting now with...
0
2163
by: Linda Cacina | last post by:
Hello all you fine folks, Here is some code I am using to merge data from a single record Access 2K3 table into a NEW word document based on a pre-defined Word merge template doc. All I want to...
3
3452
by: John Smith | last post by:
Hey folks, I've got a Windows C# application that generates a .doc file and then allows the user to preview it. I generate the file using the StreamWriter class and do a flush() and a close()...
12
1919
by: Rob Nicholson | last post by:
We've implemented functionality to allow a user to download a document (any document type) from the IIS server using the following code: Response.Clear() Response.ContentType =...
7
6215
by: Dave | last post by:
Apologies for the newbie question. I have created a vb.net program for my company that is designed to work with Word Templates (about forty of them that we commonly use) that are selected by the...
0
2161
by: Vasiliy | last post by:
Hi all! I'm developing an application to manage word templates and documents. Documents are stored in database, so when user wants to edit a document i make a local copy of this document and then...
1
1289
by: ljh | last post by:
I want to develop an application that can watch for and monitor any instance of Word 2000/2003. I need to be able to write an add-in menu for Word 2000/2003 and capture all keystrokes and mouse...
4
12413
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
14
5264
by: Alan T | last post by:
These are the codes I created a document: _WordApp = new Interop.Word.Application(); _WordApp.Visible = false; _WordDoc = new Document(); _Missing = System.Reflection.Missing.Value;
0
7135
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7342
Oralloy
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,...
0
7410
jinu1996
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...
1
7067
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...
0
5650
agi2029
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,...
0
4729
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...
0
3215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3201
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
774
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.