Re: ACE reports
Posted in 1996
Topics: Platform-Specific Issues
Fernando.Collalti@orbit.net ("Collalti, Fernando") wrote: >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) >_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ Here is one method I use: format page header { header for each page } if (pageno = 1) then {Print Landscape with line printer font} print ascii 27,"E",ascii 27,"&l1o0E", ascii 27,"(s0pt0s0b16.66h8.5V" else skip 1 line Hopefully this will work for you also, let me know if it doesn't work for you.