Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing application desktop position
Message
 
 
To
17/10/2003 20:26:13
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00839960
Message ID:
00840227
Views:
18
This message has been marked as the solution to the initial question of the thread.
>Hi Everyone,
>
>Anybody know how to change the Outlook folder view to something else?
>
>Basically, what I wanted to do is that if there is currently running Outlook, in my VFP program, I will change the current folder view to Task List or to Calendar.

Try
oOL = GETOBJECT("", "Outlook.Application")
oNS = oOL.GetNamespace("MAPI")
* Get ACtive Explorer object
oAX = oOl.ActiveExplorer
* Change current folder to Calendar
oCF = oNS.GetDefaultFolder(10)		&& Calendar
oAx.CurrentFolder = oCF
oAx.Activate()
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform