A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook 2002 Automation Problem and Contacts



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 24th 07, 11:52 PM posted to microsoft.public.outlook
MikeA[_2_]
external usenet poster
 
Posts: 13
Default Outlook 2002 Automation Problem and Contacts

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


  #2  
Old July 25th 07, 03:15 AM posted to microsoft.public.outlook
Brian Tillman
external usenet poster
 
Posts: 17,452
Default Outlook 2002 Automation Problem and Contacts

MikeA wrote:

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.
--
Brian Tillman

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Outlook Automation Neil Outlook and VBA 13 January 15th 07 08:09 AM
outlook 2002 problem seeker Outlook - Installation 5 January 7th 07 03:14 PM
Outlook-Word automation problem Gordon Filby Outlook and VBA 3 December 6th 06 01:59 PM
outlook 2002 problem jerry Outlook - General Queries 4 April 19th 06 06:01 AM
Copying contacts from Outlook 2003 to Outlook 2002 problem MikeD. Outlook - Using Contacts 3 January 25th 06 04:13 PM


All times are GMT +1. The time now is 01:42 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.