Outlook 2002 Automation Problem and Contacts

M

MikeA

I don't like crossposting but I'm getting zero responses in another group.

I'm not sure if I am posting to the right forum but I am having a problem
with accessing Contacts with Outlook Automation. The program works perfect
in Outlook 2003 but gives an error on another computer with Outlook 2002.
When I try and access the .Body I get an OLE Dispatch Error Code 4096 From
Microsoft Outlook Out Of Memory. I'm not sure if the problem is with
Outlook, the computer or perhaps I could change my programming code and how
I access the body in Outlook Contacts.

The code that gives the error is in VFPso here's a snapshot if it helps. I
don't think it is a coding problem but I'm
thinking perhaps there might be another way to access the body which might
not give this error.

loOutlook = createobject('outlook.application')
loNS = loOutlook.GetNameSpace('MAPI')
loDF = loNS.GetDefaultFolder(olFolderContacts)
loItems = loDF.items

loItem = loItems.item(1)
? loItem.Body

Thanks,
Mike
 
B

Brian Tillman

MikeA said:
I'm not sure if I am posting to the right forum but I am having a
problem with accessing Contacts with Outlook Automation.

Asking in either microsoft.public.outlook.contacts or
microsoft.public.outlook.probram_vba may be a better choice.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top