![]() |
| 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. |
|
|||||||
| Tags: 4096, code, exception, idispatch, microsoft, office, ole, outllok |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 | |
|
|
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 |