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

Tags: , , , , , , ,

OLE IDispatch exception code 4096 from Microsoft Office Outllok





 
 
Thread Tools 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
 




Thread Tools
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:01 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Facebook Proxy - Nissan Armada Forum - Loans - Home Loan - Novela Historica