Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Automating Outlook
Message
De
27/12/2005 14:23:25
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, États-Unis
 
 
À
27/12/2005 14:04:31
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01080977
Message ID:
01081067
Vues:
34
The first gives the same error after the CreateItem code, as long as Outlook is not open. The second puts the mail into my outbox.

My code used to work, so it has something to do with how my machine is set up now. Could it be related to anti-virus software?

>Did you test the two examples of code I posted? do either work?
>
>>The error is after my second line of code in my example.
>>
>>>Do you receive the error after the two lines you posted? After those two lines, you need to set a name or distribution list, etc before sending otherwise it returns an OLE IDispatch exception code 4096.
>>>
>>>
>>>
>>>
>>>>The following code is generating an error:
>>>>
>>>>loOutlook=CREATEOBJECT('outlook.application')
>>>>loMessage = loOutlook.createitem(0)
>>>>
>>>>
>>>>I have Outlook 2003. The error is "OLE IDispatch exception code 4096 from Microsoft Office Outlook: The operation failed..."
>>>>
>>>>Any ideas?
Elyse Pomerantz
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform