Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / September 2004

Tip: Looking for answers? Try searching our database.

Knowing when to call Quit and when not to???

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Shawn Anderson - 20 Sep 2004 17:16 GMT
I have a app that uses the outlook interop service.  I am trying to figure
out how to know when to call quit on the application object and when not to
call it.  Bascially, if my app is the one that started the outlook process I
want to call it, but if the user was already running outlook when they
launch my app, then I don't want to call quit.  Is there a why to tell if my
app is responsible for the starting of outlook?

Shawn
Ken Slovak - [MVP - Outlook] - 20 Sep 2004 22:35 GMT
Calling GetObject on Outlook.Application will return an instance of Outlook
if it was running and Nothing if not. If that succeeds set a Boolean that
indicates you started Outlook. If it fails then use CreateObject and set
your Boolean to False.

I'm not sure how that would code in NET code.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> I have a app that uses the outlook interop service.  I am trying to figure
> out how to know when to call quit on the application object and when not to
[quoted text clipped - 4 lines]
>
> Shawn
Shawn Anderson - 22 Sep 2004 21:08 GMT
Anyone know how to do with in a .NET language?

> Calling GetObject on Outlook.Application will return an instance of
> Outlook
[quoted text clipped - 17 lines]
>>
>> Shawn
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.