Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook/redemption not sending emails
Message
De
11/11/2002 22:36:54
 
 
À
11/11/2002 17:38:58
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00720652
Message ID:
00721383
Vues:
10
Alan,

Another way to go about this is to send a message to the Outlook application/window. You could probably go low level with the Win32API which I didn't try, or you could use the Windows Scripting Host SendKeys method to do it too. The following code worked for me by using the menu structure in Outlook to get to the Send/Receive-All Accounts menu item. It's a simplistic approach, but may suit your needs.

IF oOutlook.Application.ActiveExplorer.WindowState = olMinimized
oOutlook.Application.ActiveExplorer.Activate()
ENDIF

oWshShell = CreateObject("WScript.Shell")

WITH oWshShell
.AppActivate("Microsoft Outlook")
.SendKeys("%T")
.SendKeys("E")
.SendKeys("{ENTER}")
ENDWITH
Kendall Webb
Senior Software Engineer
MCAD.Net/MCSD.Net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform