Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening Outlook calendar
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00764835
Message ID:
00765031
Vues:
24
You can use the oAgenda collection's Sort and Restrict methods to do this. But one word of warning: date formatting is very particular (at least, on the US copies of Outlook I have used... may differ depending on outlook date settings and so on).

Try something like this:
loLocalAgenda = Createobject("Outlook.Application")
loNameSpace = loLocalAgenda.GetNameSpace("MAPI")
oAgenda = loNameSpace.GetDefaultFolder(9)

oAgenda.items.sort("[Start]")
lcDateRange = "[Start] >= 'March 12, 2003 12:01 AM' AND [End] >= 'March 12, 2003 11:59 PM'"
oSmallerCollection = oAgenda.items.Restrict(lcDateRange) 
Hope this helps.



>Hello,
>
>I'm using teh following code to open my calendar in Outlook :
>
>loLocalAgenda = Createobject("Outlook.Application")
>loNameSpace = loLocalAgenda.GetNameSpace("MAPI")
>oAgenda = loNameSpace.GetDefaultFolder(9)
>oShow = oAgenda.GetExplorer(2)
>oShow.Activate()
>
>It works fine but it's always today's calendar. How can I open the calendar of a specific date ?
>
>Greetings
The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts. - Bertrand Russell
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform