Re: Help! Text Formatter
Posted in 1997
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL, Networking & sqlhosts Configuration, Platform-Specific Issues
Chad Laity wrote: > > I am in need for an ascii text formatter. We use an Informix database > on an HP 9000 K200 running HP-UX 10.10. Our 4gl program gathers > information from the database, produces an ascii text file, nroff's the > ascii file, and sends it to the HP LaserJet printer via TCP/IP. Nroff > does not support our reporting needs. I want to print multiple sized > fonts and ,most important, print tables. I want something that can be > run straight from the command line and is simple to use. > > Anyone have any suggestions? > > Please let me know, any help will be appreciated. > Chad Laity > chad_laity@arrowintl.com > mailto:chad_laity@arrowintl.com > Arrow International, Inc. > CAE Database Programmer Surely you just need to use troff plus one or more pre-processors such as "me" or "ms" plus "tbl" for the tables. I've been doing this for years - multiple font styles as well as sizes. The Free Software Foundation (I think) put out "groff" plus various post-processors for different devices such as laser printers e.g. ghostscript. These are stable, well written in spite of being free - get them off any Linux CD-ROM or ftp from one of the mirror sites of the FSF e.g. sunsites. I prefer to use it something like: grep | sort | awk |groff | ghostscript | lpr admittedly smaller and simpler than using Informix but same principle.. -- Bob Hepple, bhepple@pacific.net.sg ph: +65-437-5856