Re: Problema con los reportes
Posted in 1997
Beg to differ. Excluding strange printing options and bad lpr filters or lp models, the most likely source for an extra page is a spourious blank print statement, somewhere. And/or, Angela's report could be written to skip to top of page in an after group of clause, or... In this case, making her use the top of page directive (as opposite to plain LF's) will not help. I would thorougly revise the report logic, and try to send the report to a file, rather than the printer, to see if the report outputs one more ENTER, as she says, or 66, meaning that it is printing an entire extra page. HTH, Marco _______________________________________________________________________________ Marco Greco, Catania, Italy Informix faq http://www.iiug.org/ marcog@linux.ctonline.it 4glworks http://www.ctonline.it/~marcog rem radioterapia +39 95 447828 fax 446558 Jonathan Leffler wrote: } } On Fri, 12 Sep 1997, Nick Nobbe wrote: } } > [Attempting to summarize quickly - Using I4GL 4.16 Angela sets page length } > to 66 lines (anything else causes creeping up or down) with page breaks } > before each new customer code and she gets a final form feed after printing } > her last page. Not good for a billing app. Is there any way to prevent this } > final eject? } > } > Would setting the page length to 0 and letting the printer control } > the page breaks work? } > } > All ye 4GL wizards, any recommendations? } } Thanks for the translation, Nick -- I couldn't work it out. } } I think the answer may be to use: } } REPORT reportname(...) } DEFINE ... } OUTPUT } TOP OF PAGE "^L" -- Use a control-L or formfeed, not the two characters caret and L. } ... } FORMAT ... } END REPORT } } This should cause the the last page to complete and nothing to appear on the } next page. } } Yours, } Jonathan Leffler (johnl@informix.com) #include <witticism.h> } } } On Thu, 11 Sep 1997, Familia Restrepo wrote: } } } Trabajo con informix 4GL versi'n 4.16, y tengo un peque'o problema con los } } } reportes que estoy haciendo. } } } } } } Resulta que estoy haciendo unos programas que deben sacar un listado. } } } Cuando estoy haciendo el reporte, le digo que el tama'o de p'gina es de 66 } } } l'neas (si le digo otro tama'o, se me descuadran las p'ginas. Cada vez } } } empiezan m's abajo, o m's arriba, o sea que ese es el tama'o correcto). } } } Estoy haciendo el salto de p'gina por el c'digo del cliente, de manera que } } } le digo que antes de cada c'digo de cliente salte a la p'gina siguiente. } } } } } } El resultado de esto es que salen unos reportes muy lindos excepto por un } } } detalle: despues de la 'ltima p'gina est' haciendo un ENTER extra, con lo } } } cual esta tirando una p'gina en blanco al final. } } } } } } Consultamos con el servicio de Informix en Miami, pero nos dijeron que a } } } ellos no les pasaba lo mismo, intentamos de muchas formas, pero al final } } } seguimos con el mismo problema. } } } } } } Los programas que se van a hacer ahora son los de facturaci'n, y como } } } podr'n imaginarse no ser'a bueno que despues de cada factura botara una } } } hoja de m's (se descuadran los consecutivos y nos hechan del trabajo). } } } } } } No sabemos si el problema es del informix o de las impresoras, aunque hemos } } } ensayado en todo tipo de impresoras y el resultado es el mismo. } } } } } } Si a alguien se le ocurre una idea, por favor ay'deme. } } } } } } Angela Mar'a Restrepo