Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook from VFP, startup error
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00205721
Message ID:
00205784
Vues:
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
Paul G Brown, MCSD
Paul G Brown
paul@paulgbrown.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform