Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook from VFP, startup error
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00205721
Message ID:
00205866
Views:
16
>>>>I am running Outlook from VFP. I read John Petersen's articles in the August and September '98 issues of FoxTalk, on Outlook from Visual FoxPro. Ran into a problem when I took it out to run it on my clients system. They use Outlook with an Exchange backend. When I try to send mail from their workstation using my application, my app dies, unless Outlook is already started up.
>>>>
>>>>On their workstation, when a client logs onto Outlook, a screen comes up which gives them a choice as to which account to logon to. I think this screen is killing my app, since it expects a response, and I don't even know what the objects are to respond to (plus it is on their system, and I don't have any development tools on their system).
>>>>
>>>>How do I access that object, and is there any way for me to test it at my office? Thanks in advance.
>>>>
>>>>Daniel
>>>The way you can test it at your office is by using the GetObject() function that gets a reference of a running program. I suppose from there you may use a batch file or a fancy API call to open Outlook, or for that matter, prompt the user to launch Outlook and check for the presence of Outlook on a loop until the program gets ahold of the reference.
>>>
>>>oOL = GetObject(, "Outlook.Application")
>>>If Type("oOl") <> "O" Then
>>>* Outlook is not running, launch it or prompt user to do it.
>>>Endif
>>>
>>>Just a tought.
>>
>>Here's an article on Outlook and Automation Q181202
>>
>>Here's one on exchange Q153311
>>
>>HTH
>Thanks Paul, I found the second article useful since I do program in Access (says me). However, I don't see how it addresses the problem in question.

Sorry, they were just some articles I found helpful awhile back and didn't re-read.
Paul G Brown, MCSD
Paul G Brown
paul@paulgbrown.com
Previous
Reply
Map
View

Click here to load this message in the networking platform