IFMX and Word or Wordperfect (fwd)
Posted in 1995
Topics: Security, Permissions & Auditing
Jay Aymond writes: > > I need to create both a WordPerfect and a Microsoft Word > mailmerge file from data stored in an Informix database. > > Does anyone have the file formats for these two products, or > better yet, has someone done this and might be willing to share > the code. The ace report below will work for WordPerfect5.0 -- Generate wordperfect mailmerge file for grant acceptance -- letters. output report to "grntltr.mm" page length 60 top margin 0 bottom margin 0 left margin 0 end format on every row print pname print pstrt print pcity clipped; if pst is not null and pst <> " " then print " ", pst clipped; if pzip is not null and pzip <> " " then print " ", pzip clipped; print ascii 18 if salut is not null and salut <> " " then print salut clipped, ascii 18 else print "Grant Applicant", ascii 18 if ggtype[1,1] matches "[AEIOUaeiou]" then print "an "; else print "a "; print ggtype[1,1]; if ggtype[2,2] is not null and ggtype[2,2] <> " " then print "-",ggtype[2,2]; print ascii 18 print purpose1 clipped; if purpose2 is not null and purpose2 <> " " then print " ",purpose2 clipped; print ascii 18 print gawrd using "<<<<#.##", ascii 18 print gdo clipped, ascii 18 print ascii 5 end -- Phillip Zunder, Ph.D. | Phone: 802-241-2112 Director Of Planning & Research | Fax: 802-241-2114 Social and Rehabilitation Services | TTY Voice: 800-253-0195 Osgood Building | TTY User: 800-253-0191 103 South Main St | internet: Waterbury VT 05671-2401 | phil@srs.ahs.state.vt.us