Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
How to select records and insert in preformateed MS Word doc
I want to extract data from table like name, designation, company and add in a preformatted word document. I am able to open word and the file but I am looking for the syntax which will insert the required data on to the specific line.
oWord = CreateObject("Word.Application") && Opens MSWord Application
oWord.Visible=.t.
oWord.Documents.Open('DocumentName.doc') && Opens the Document
oWord.ActiveDocument.MailMerge.OpenDataSource('datapath') && Sets the DataSource
Please help and if possible send cc mail to aslam@gih-ku.com
I am sure I will get enough responses and therefore I thank you in advance.
Regards,
Aslam
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