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 and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

OLE IDispatch exception code 4096 from Microsoft Office Outllok



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 23rd 07, 03:29 PM posted to microsoft.public.outlook.program_vba
Leonardo
external usenet poster
 
Posts: 1
Default OLE IDispatch exception code 4096 from Microsoft Office Outllok

Hi to everybody,

When I launch my Visual Fox Pro application into my pc everything work
correctly but in another pc I obtain this error message:
OLE IDispatch exception code 4096 from Microsoft Office Outllok...

So, I don't understand where is a problem. That's my code:
#DEFINE olFolderContacts 10
#DEFINE olCurrency 14
#DEFINE olPercent 12

LOCAL loOutlook, loNameSpace, loFolder, loContact, loNewContact

CLOSE DATA ALL

loOutlook = CREATE("Outlook.Application")
loNamespace = loOutlook.GetNameSpace("MAPI")
loFolder = loNameSpace.GetDefaultFolder(olFolderContacts)
valore = ""
nomeFile =SYS(5)+SYS(2003)+"\contatti.txt"
DELETE FILE nomeFile
IF FILE(nomeFile) && Esiste?
contattiFile = FOPEN(nomeFile,12) && Apro in R/W
ELSE
contattiFile = FCREATE(nomeFile) && Altrimenti lo creo
ENDIF

id = SUBSTR(loNameSpace.AddressLists.Item(2).ID,89)
loFolder = loNameSpace.GetFolderFromID(id)

FOR EACH oContact IN loFolder.Items
WITH oContact
valore = .firstname + "---" + .lastname + "---" + .email1address + "---" +
..Categories + "---" + .JobTitle + "---" + .IMAddress + "---" + .CompanyName
+CHR(13)+CHR(10) &&+ "---" +CHR(13)+CHR(10)+ .body + CHR(13)+CHR(10)+ "---"+
CHR(13)+CHR(10)
=FWRITE(contattiFile, valore)
ENDWITH
ENDFOR

FFLUSH(contattiFile)
FCLOSE(contattiFile)

Into the other pc I have correctly installed a setup standard that I use for
all my application and the first use worked correctly but at the moment I
obtain this message.
Can anyone help me ?


Leonardo


Ads
  #2  
Old September 13th 10, 12:49 PM
Icu Icu is offline
Junior Member
 
First recorded activity at Outlookbanter: Sep 2010
Posts: 1
Default

Hi, leonardo.
I have the same problem.

Do you know the solution??

Thank You
 




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
when using microsoft word is unavailable as email editor. OLE erro Tom Outlook - Using Forms 0 November 29th 06 04:55 AM
OLE works in office but not at home. oorexxpert Outlook and VBA 8 November 13th 06 03:29 AM
Possible Malicious Code Recieved ; Target = OLE ? default Outlook Express 2 July 5th 06 12:34 PM
Installing Outllok 2003 causes DIS(integration) with Office Duff Browne Outlook - Installation 1 February 7th 06 05:46 PM
Office/Outllok updates failing Ron Outlook - General Queries 0 January 29th 06 03:31 AM


All times are GMT +1. The time now is 04:54 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.