Discussion Locked

VB6 accessing WrdMerge

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a small VB6 program that uses DAO 3.5 to input data into an Access97 mdb. We currently manually open a word merge document, change the the data source to a different table, merge the document, and then print.

How can I connect my VB6 code to the word document and automate these functions. Yes I have MSWord 8.0 Library referenced.

Thanks

d2

3 replies

by the1

I created an application that allows my users to fill out a time sheet within windows. At the the end of the week the user can print the timesheet. The app connects to Word and fills out the fields appropriately.
You will need to create the word doc with the appropriate fields.

I cant post the code as it is longer then what TechRepulic will allow.

if you want the word doc and code to see what i mean, email me... scott@gutauckis.com

This discussion is closed to new replies.