Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Office 2007 breaks word Automation
Message
De
04/09/2008 16:43:11
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01331039
Message ID:
01344963
Vues:
25
>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 :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform