RE: Formating Reports
Posted in 1999
I think you'll find that first of all you need to clip all variables that contain a PCL command to be on the safe side and secondly, you need to (-hic-) start specifying the actual column position that you wish to print at e.g. print "^[*p100X", l_variable which will print the variable (-hic-) l_variable 100 points across on the page. (I'm assuming you are printing on a printer similar to a HP laser jet 4000 ) You also need to select a non-proportional font and combine the command for that with a command similar to the one above. Cheers (-hic-) Rekaish -----Original Message----- From: NDSTURNERBUND@t-online.de [mailto:NDSTURNERBUND@t-online.de] Sent: Thursday, September 02, 1999 1:18 PM To: International Informix User Group Subject: Formating Reports Hello list! I've got a problem printing bills. I formatted my report with PCL commands. By using ESC (s1P the column are not in a line like this: xyz 0 10.00 xyz 10 20.00 What can I do to get "normal" bills looking like this: xyz 0 10.00 xyz 10 20.00 format first page header let fett = ASCII(027),"(s1p12v3t3B" -- Umschaltung auf FETT-Schrift let normal = ASCII(027),"(s1p10v3t0B" -- Umschaltung auf Normal-Schrift let oben = ASCII(027),"&l1H" -- Benutzung des oberen Schachtes mit LASER Jet IIID let unten = ASCII(027),"&l4H" -- Benutzung des unteren Schachtes mit LASER Jet IIID let gross = ASCII(027),"(s1p14v3t3B" -- Schriftgr'sse 24 Pica, Fett let klein = ASCII(027),"(s1p12v3t0B" -- Schriftgr'sse 12 Pica, Normal print unten clipped,normal -- Ausgabe der Rechnungswerte print normal clipped, "Mitgliederzahlen",15 spaces; print "Einzelbetrag",1 spaces; print " (",waehrung_text clipped,")",10 spaces,"Gesamtbetrag"; print " (",waehrung_text clipped,")" skip 1 lines print normal clipped, "Kinder m",column 25; print kind_m ,column 45,kind,column 80,betrag_kinder_m print normal clipped, "Kinder w",column 25; print kind_w ,column 45,kind,column 80,betrag_kinder_w skip 1 lines print normal clipped, "Jugendliche m",column 25; print jug_m ,column 45,jugend,column 80,betrag_jugend_m print normal clipped,"Jugendliche w",column 25; print jug_w ,column 45,jugend,column 80,betrag_jugend_w skip 1 lines print normal clipped, "Erwachsene m",column 25; print erw_m ,column 45,erw,column 80,betrag_erw_m print normal clipped, "Erwachsene w",column 25; print erw_w ,column 45,erw,column 80,betrag_erw_w skip 1 lines print normal clipped,"Gesamtanzahl ",gesamt_a ,column 55; Thanx in advance. Dirk Emmermacher Lowersaxony gymnastics federation