Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clicking Send&Receive in Outlook
Message
From
12/03/2009 19:24:59
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01304787
Message ID:
01387560
Views:
54
I'll add to this, since it took me a while to find out how easy it is to use the commandbars. For example, to Reply to the currently selected email in outlook and then Paste the contents of the clipboard into that reply, do the following. You can also use the WebBrowser activeX control to place html into the clipboard first if you wish. Powerful stuff!
m.loOutlook= GETOBJECT(, "Outlook.Application")   && get already open outlook obj
m.loOutlook.ActiveExplorer.CommandBars.FindControl(,354).Execute   && reply using explorer obj
m.loOutlook.ActiveInspector.CommandBars.FindControl(,22).Execute   && paste using inspector obj
You can see a list of the commandbar IDs here and on other sites:
http://support.microsoft.com/kb/173604

-Mark

>>Hi
>>
>>Is it possible to click the Send & Receive button in MS Outlook from within VFP?
>>
>>Any help extremley apreciated.
>
>oOutlook.ActiveExplorer.CommandBars("Standard").Controls("Send/Receive").execute
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform