Information générale
Catégorie:
COM/DCOM et OLE Automation
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement