General information
Category:
Coding, syntax & commands
Title:
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only