Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE dispatch error when merging from a datasource
Message
De
03/05/2007 15:36:23
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
03/05/2007 13:09:51
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01222219
Message ID:
01222306
Vues:
18
>>Getting this error:
>>
>>
>>Error: 1429 OLE IDispatch exception code 0 from Microsoft Word: Word was unable to open the data source..."
>>
>>
>>It hits on the OpenDataSource line in this code:
>>
>>
>>WITH .ActiveDocument.MailMerge
>>	.OpenDataSource(m_temp_dir+'FeeSlip.dbf')
>>	.Execute()
>>ENDWITH
>>
>>
>>The directory and FeeSlip table are available and in scope at that point of the code, and there is a populated record in the table. Word has already opened a doc and it is mostly populated, other than merge fields at the top of the document. These fields are supposed to be filled by the records in the table.
>>
>>I don't have much OLE experience, at least not with Word (some Excel) so does anyone have any thoughts in what I should be looking at? Thanks!
>
>Update: I opened up the Word document outside FP application and tried to open the Data Source (FeeSlip.dbf), but it gives and error that "Word was unable to open the datasource." I'll do some online research, but in the meantime, anyone know why this might happen?

It was the ODBC setup. There is a company script that they run to setup workstations that was never run on mine.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform