Re: ACE reports
Posted in 1996
In article: <4ep4v3$3uk@cssun.mathcs.emory.edu> Fernando.Collalti@orbit.net ("Collalti, Fernando") writes: > > > Hello, > > This is my an extract of my ace report: > > > OUTPUT SECTION > ============== > output > left margin 0 <<<---------I set the page margin in order to have > right margin 132 a landscape format of the produced report > top margin 0 > bottom margin 0 > page length 52 > report to "cash.txt" > > FORMAT SECTION > ============== > format > > page header > > print ascii(12) <<<------I print ^L in order to break the page > print column 53, "==========================" > print column 53, "Subscriber Business System" > print column 53, "==========================" > print > print > print column 53, " CASH PAYMENT REPORT" > print > print > > before group of hea_ordid > print column 20, hea_ordid; > > after group of hea_ordid > print sbs_sub_locid, 1 space, sbs_mas_uua, 1 space, group total of > pac_nett_tot using "$$$,$$$,$$$,$$$.$$", 2 space, update_hea, 2 space, > sub_cname clipped, ",", 1 space, sub_csurname clipped > > on last row > print > print > print column 20, "Total revenue from cash payment: ", 8 space, total of > pac_nett_tot using "$$$,$$$,$$$,$$$.$$" > > page trailer > print > print > print "Date:", today using "dd/mm/yyyy"; > print column 64, pageno using "Page ###"; > print column 112, "Time:", time > end > > > QUESTION: > In order to have a "PAGE BREAK", in the ACE page header I "print > ascii(12)" > that gives me a ^L character that breaks my report. I would like to know if > there is > a similar "control character" that sets the printer in order to print > LANDSCAPE my > report? > I'm working on HP-UX 9.04 and the printers are HP LaserJet 4 series. > > > Regards. > > > Fernando > > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > Fernando Collalti Phone: +39 6 2254 3474 > Orbit Communications Company (NSS) Fax: +39 6 2254 3810 > Via Raffaele Costi, 60 E-mail: Fernando.Collalti@Orbit.net > I-00155 Roma (Italy) > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > > Try this. FIRST PAGE HEADER PRINT ASCII(27), ASCII(38), ASCII(108), ASCII(49), ASCII(79) print ascii(12) <<<------I print ^L in order to break the page print column 53, "==========================" print column 53, "Subscriber Business System" print column 53, "==========================" print print print column 53, " CASH PAYMENT REPORT" print print You may also be able to remove the page break command from fisrt page header and page header and insert the line TOP OF PAGE "^L" in the output section. -- ---------------------------------------------------------------- | Adrian Heathcote EMail adrian@adrianh.demon.co.uk | ----------------------------------------------------------------