from: DEnglander--- via MIDRANGE-L <midrange-l@xxxxxxxxxxxxxxxxxx>
subject: RE: RPG or SQL how to generate letters from a Word Document
The only way I know of to do that is to use overlays. The last time I did
that [it's been awhile] there was a printer driver I had to install in
word. You would print the template to that printer, which created a file
you copy to the system. Then I think I ran the CRTOVL command to create
the overlay from that template, and used an OVRPRTF in the CL that calls
the RPG program specifying the overlay created by the CRTOVL command [from
Not sure if that scenario still works, but it did quite nicely at the
Hope this helps.
"CONFIDENTIALITY NOTICE: This e-mail transmission (and/or the attachments
accompanying it) contain confidential information belonging to the sender.
The information is intended only for the use of the intended recipient. If
you are not the intended recipient, you are hereby notified that any
disclosure, copying, distribution or the taking of any action in reliance
on the contents of the information is strictly prohibited. Any
unauthorized interception of this transmission is illegal under the law.
If you have received this transmission in error, please promptly notify the
sender by reply e-mail, and then destroy all copies of the transmission."
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.