Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting hold of Outlook Calender data
Message
From
14/12/2001 07:20:04
Jonathan Hayton
Cbl Business Solutions Limited
Leeds, United Kingdom
 
 
To
13/12/2001 08:22:55
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00593797
Message ID:
00594318
Views:
16
This is a sample of how to acheive this ... look at VBA help for Outlooks Object Model for more details, alternatively Office Automation in Visual Foxpro form Hentzenwerke is a good prima .

* -- Start of Sample Code -
* -- Define Constants as per Outlooks Object Model
#DEFINE olFolderDisplayNormal 0
#DEFINE olFolderCalendar 9
* -- Create Outlook Object ready for Automation
oOutlook = CreateObject("Outlook.Application")
* - Creaet NameSpace and Explorer Object so you can see outlook
oNameSpace = oOutlook.GetNameSpace("MAPI")
oExplorer = oOutlook.Explorers.Add(oNameSpace.Folders[1],olFolderDisplayNormal)
oExplorer.Activate()
* -- Define Calendar Object
oCalendar = oNameSpace.GetDefaultFolder(olFolderCalendar)
* -- Set Search Criteria
cFilter = '[Start] = "CTOD(10/12/01)"'
* -- Search for Items
oAppt = oCalendar.Items.Find(cFilter)
* -- Store Subject Header in variable and then display it
cSubject = oAppt.Subject
wait window cSubject && or alternatively
Replace MyAppointmentsField with cSubject

Previous
Reply
Map
View

Click here to load this message in the networking platform