Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook/redemption not sending emails
Message
From
11/11/2002 22:36:54
 
 
To
11/11/2002 17:38:58
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00720652
Message ID:
00721383
Views:
8
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform