Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to break the link in mailmerge
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00476351
Message ID:
00476356
Vues:
17
>I have several mailmerge documents that are linked to .dbf free tables. I want code that determines the link is to a *.dbf, then breaks the link while preserving the document with its' mergefields and then I would do a DO CreateDataSource to reestablish the link to a word doc that has the data in a word table. I have the Hentzenwerke book on Office Automation and am using that as a base. But it works with templates and new documents. I can have new documents as my clients can create new ones, but I also have existing documents that I no longer want to have linked to .dbfs. Also do not want to use templates because then my client can not so easily make changes to the main document.

I can not answer your first questions, but I do have a suggestion for templates. First, I am using VFP 6 SP4. All my Word document templates that I automate in VFP are not available as individual documents that the users can edit and save. I use the FileToStr() function to put the template into a VFP memo field. When I start the process, I create the template document using the StrToFile() function.

When they need template changes, I either do it, or I can at least more easily control such changes.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform