Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with Outlook Automation
Message
De
01/08/2000 12:32:55
 
 
À
01/08/2000 12:08:27
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00398593
Message ID:
00399414
Vues:
16
Hi John,

>You and Tamar were on the right track: The reason that your code acted so flaky was that Outlook couldn't tell where to put the Task when it was not explicitly open. This is why you need the Namespace and the default MAPI folders to automate Tasks (and other stuff too). Try the code below (I modified your code):

[snip]

Thanks for your input - I've copied the new code to a text file for later perusal.

However, now I'm really confused. My previous code to Tamar [ with .close{olSave) ] worked fine and saved each task added to Outlook with no problems.

Also, Microsoft's own examples [ such as Knowledge Base article Q162371 - Using Automation to Add a Task/Reminder to MS Outlook, which uses MS Access ] do not use the Namespace and default MAPI folders.

MSFT only seen to use these when retrieving data from Outlook.

Obviously, my concern is that I write something which works in one version of Outlook, but not in other versions.

Best.

Matt.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform