Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to select records and insert in preformateed MS Word doc
Message
From
06/11/2001 06:46:21
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to select records and insert in preformateed MS Word doc
Miscellaneous
Thread ID:
00577870
Message ID:
00577870
Views:
59
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
Map
View

Click here to load this message in the networking platform