Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!hplabs!pyramid!infmx!markj From: markj@informix.com (Mark Jeske(Chicago Consultan)t) Newsgroups: comp.databases Subject: Re: Informix Reporting ... Message-ID: <1990Sep28.214140.12395@informix.com> Date: 28 Sep 90 21:41:40 GMT References: <1990Sep24.220517.6188@balr.com> <1990Sep25.190213.1176@balr.com> Sender: news@informix.com (Usenet News) Organization: Informix Software, Inc. Lines: 35 In article <1990Sep25.190213.1176@balr.com> segel@balr.UUCP (Michael Segel) writes: > > >Sorry 'bout that. What I wanted to ask was a work around >to doing reports in 4GL with indeterminate page lengths. >In 4GL, you must specify the page length for the printer, >so Informix can do all the neat header/trailer and page handling. >However for my application I did not know the page size and lenght >(Can vary for each font, and I don't want to recompile my report > and program each time.) > > >So I printed the report to a file, and after I was done, I >printed the file to the printer. To get a new page, I printed a >file with only a "^L" in it. (Informix will not allow for control >characters to be printed). Yes, it does. You can use the ascii statment to print control characters. > >The only problem with this, is that Informix will automatically >assume a page length (66 I think) and will force lines when it >thinks it is at the end of a page. > My solution to this was to set the PAGE LENGTH to some large >number like 9000, and to change the ESQL/C code generated to NOT >add blank lines. The change was to stop Informix from trying to >print 8000 or so Blank lines :-) This worked, however I seem >to remember a simpler solution. You might want to try page length 1. Mark jeske (Informix consulting) markj@infmx.com