Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word merge
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Word merge
Divers
Thread ID:
00776612
Message ID:
00776612
Vues:
61
Hello everyone,
I'm trying to do a merge of data from VFP 6 into Word. I've found snippets of code to use from browsing around and from the March 2003 issue of Foxpro Advisor (pg 8-9). Here's an example:

oWord = CREATEOBJECT("Word.Application")
oWord.Documents.Open("C:\doc_name")
oWord.ActiveDocument.MailMerge.OpenDataSource( ;
dsName , 0, .F., .f., .t., ;
.f., '','',.f.,"", "", "Entire Spreadsheet")

My question is, how does one find out what methods, parameters, etc. are available for use? There doesn't seem to be a "Word" entry in the VFP Component Gallery (if there is, I don't see it). I mean this code does work, but it doesn't do exactly what I want, so I'd like to be able to tweak it. Moreover, I'd like to be able to figure this stuff out on my own! :)

Also, if anyone has any tips on merging data from Foxpro to Word, I'd appreciate it. The aforementioned article in Foxpro Advisor seems to suggest that there's no good way of doing this. :\
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform