Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mailmerge to Word - Secifying the DataSource
Message
De
29/12/1999 13:30:20
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00309401
Message ID:
00309974
Vues:
38
>Thanks Cetin for the wise words. I will keep them in mind. I especially wasn't aware that Word tried to open datasource tables exclusively. In the meantime, FWIW, it turned out that the full command to make it work is:
>
>loWord.ActiveDocument.Mailmerge.OpenDataSource( ("c:\data\mydbf.dbf" , , , , , , , , , , , "DSN=FoxPro Files;DBQ=c:\data;", "SELECT * FROM mydbf.dbf")
>
>It apparently needed the DSN that you mentioned.
>


What I do is to get a copy to a free temp table if I use DSN. Just be sure table doesn't contain memo fields. A workaround might be to copy as an XLS and set it as Datasource.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform