I want to do a Word merge, using a Progress program

WayneFrank

Member
I want to do a Word merge, using a Progress program to generate the data file, and then, also in the Progress program, to invoke Word and have it do the merge, with the finished product appearing on the user’s desktop.

Right now the Progress applications do a merge with WordPerfect. The user runs a report from the application, and it brings up the form, does the merge, and the user is looking at the finished document. Hopefully the same thing is possible using Microsoft Word.

Thanks
 
Our organization will be switching to Word from WordPerfect. The data source will be generated by the program, using parameters the user inputs into the application.

Then we want to take a Word template (I think template is the correct term here) and merge in the data source that it previously created.
 
OK, I have tried this little program, and it does do the merge. Thanks.

A question however. When this program executes, it brings up the merged document as I would expect. It also opens a read-only version of my document with the variable names. And it has added a «Next Record If» which was not there before.

Is there a way to have it not bring up the document with the variable names?

Thanks, Wayne
 
I am still working on the problem how to hide the template document. I do not want it to appear to the user. What can anyone tell me?

Thanks.
 
chWord:visible = false will hide the Application.

We have done a similar thing for a customer, the best way of doing this is for the template document to have some merged fields that is simple text like ]]CUSTOMER_NAME, then you can use Progress Word object to do a find and replace.

Hope this helps
 
Back
Top