Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ole IDispatch exception code 0 Error 1429
Message
De
09/08/2002 14:00:52
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Ole IDispatch exception code 0 Error 1429
Divers
Thread ID:
00688100
Message ID:
00688100
Vues:
189
I get this error and it says Word could not open the data source.

The code below worked using Word 95, 97 and 2000. It does not work using XP.

We are are using VFP 6.

Any ideas ???

Thanks,

-Greg

mvTempPath=fullpath(curdir())
mvTempMerge=(mvTempPath)+'merge.dbf'

cDoc=alltrim(str(thisform.lstWP.ListIndex))+'.doc'
cDoc="'&mvTempPath"+cDoc+"'"

oWord = CreateObject("Word.Basic")
oWord.appmaximize

WITH oWord
if !file(&cDoc)
.FileNewDefault
.MailMergeMainDocumentType(0)

cODBCSource = "DSN=Visual Foxpro Database;SourceDB=&mvTempPath;;
SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;"


*** This is line where the error occurs.***
.MailMergeOpenDataSource("&mvTempMerge",0,0,0,0,"","",0,"","",;
m.cODBCSource,"SELECT * FROM MERGE", "")
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform