Re: page layout, graphics to printers from i4gl reports.
Posted in 1994
Daniel Wynalda (danielw@wyn386.mi.org) wrote: : I am looking to find a better way to create 4GL reports (Vertical lines, : boxes, shading, etc) direct from 4gl. Is there an addon program/filter : one can use to (ideally) design a form and place it in a file. [...] The PRINT FILE "<filename>" command comes to mind here. You put the PCL commands to print the form into that file and then include the above statement into your 4GL report to be executed before the first row of data is printed. I don't know whether it is possible to make "filename" a variable, this would surely add some more flexibility to the statement. However, you CANNOT put this statement inside a PAGE HEADER or FIRST PAGE HEADER section. The drawback of this solution is that you still have to hardcode the position of the data into your report. But if you know exactly what form will be printed in your report, then you can probably live with this. Barcodes are relatively easy: Just print the PCL command for switching your printer to the desired barcode font before you print your data, then print the command that switches back to "normal" font. To print the "ESCAPE" character, use "PRINT ASCII 27". Hope this helps, Richard -- +----------------------------+-------------------------------------------+ | Dr. Richard Spitz | INTERNET: spitz@ana.med.uni-muenchen.de | | EDV-Gruppe Anaesthesie | Tel : +49-89-7095-3421 | | Klinikum Grosshadern | FAX : +49-89-7095-8886 | | 81366 Munich, Germany | | +----------------------------+-------------------------------------------+