Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE dispatch error when merging from a datasource
Message
 
 
To
03/05/2007 11:44:31
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01222219
Message ID:
01222224
Views:
14
>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!

I'm not 100% certain but I think we had the same problem occasionally. The solution was a simple retry, I believe.

I'll try to find out more details from my former colleague.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform