Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automating Outlook
Message
From
27/12/2005 14:23:25
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
 
 
To
27/12/2005 14:04:31
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01080977
Message ID:
01081067
Views:
33
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform