>I wanted everyone to know that I did fix my issue with Word2007. It was really simple but way time consuming. I want everyone to know that 2 datasources can be used on ONE document. I use mergefields and an embedded {database} query pointing to DBF's (free tables). The Word2007 documents use an "odc" xml doc to point to one datasource. The embedded query points to different datasource.
>
>I had 2 issues;
>1. "Word cannot open document as a data or header source because it contains no data."
>2. Word2007 documents with mergefields stays dynamic after saving. (reprinting a merged doc gives displays the data currently in the data, not the data originally merged)
>
>Solution:
>1. The solution in the book "MS Office Automation with VFP" for attaching data to a word doc DOES NOT work in Word2007. That means NO data doc and NO header doc to merge. Here is my code:
...
>Please feel free to email me with questions, Chuck
Thanks for being a one-man-bucket-brigade for us. Duly bookmarked; if I get to need this, I hope I'll remember to look it up here :).