>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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only