Printing blank pages

Printing blank pages

Post by SR » Sun, 31 Dec 1899 09:00:00



Please, can anyone offer some advice. I am running Informix 4gl 7.x
on a SCO Openserver box. My problem is that every report job that
I send from Informix has a blank page appended at the bottom of the
report. This is obviously environmentally unfriendly and nauseating for
my users. I am not using the "eject page" or "skip to top of page"
commands anywhere. If I print using "lp" from unix, no blank page is
added. This has led me to believe that perhaps I can instruct Informix
not to add this blank page.

I would be grateful for any advice in relation to the above.

Cheers, Sean.

 
 
 

Printing blank pages

Post by marco gre » Sun, 31 Dec 1899 09:00:00


Looks like you're reporting to printer rather than to pipe.

try something like

start report your_rep to pipe "lp -dyour_printer -o necessary_options".

For more info RTFM 4gl reference vol 1, ch 5 (report writing) and vol 2, (start report)

HTH
marco.
____________________________________________________________________________
rem radioterapia, which I immeritately manage, seldom agrees with what I say

marco greco   (Catania, Italy)      Work:



Please, can anyone offer some advice. I am running Informix 4gl 7.x
on a SCO Openserver box. My problem is that every report job that
I send from Informix has a blank page appended at the bottom of the
report. This is obviously environmentally unfriendly and nauseating for
my users. I am not using the "eject page" or "skip to top of page"
commands anywhere. If I print using "lp" from unix, no blank page is
added. This has led me to believe that perhaps I can instruct Informix
not to add this blank page.

I would be grateful for any advice in relation to the above.

Cheers, Sean.

-----------------End of Original Message-----------------

 
 
 

Printing blank pages

Post by Jack Park » Sun, 31 Dec 1899 09:00:00


Quote:

> Please, can anyone offer some advice. I am running Informix 4gl 7.x
> on a SCO Openserver box. My problem is that every report job that
> I send from Informix has a blank page appended at the bottom of the
> report. This is obviously environmentally unfriendly and nauseating for
> my users. I am not using the "eject page" or "skip to top of page"
> commands anywhere. If I print using "lp" from unix, no blank page is
> added. This has led me to believe that perhaps I can instruct Informix
> not to add this blank page.

> I would be grateful for any advice in relation to the above.

> Cheers, Sean.

Here is a little awk script we use to trim out excess blank space.

In this case it leaves 5 blank lines and trims all else.  We use it when
out-putting to the screen to trim excess white space.

awk '{ if (NF == 0 ) blank_lines++
   else {
       if (blank_lines > 5) blank_lines=5
       while (blank_lines) {
          printf "\n"
          blank_lines--
          }
       print
       }

Quote:}'

cheers
j.
_____________________________________________________________________________
Jack Parker - Hewlett Packard, DMD/IS Boise, Idaho, USA

_____________________________________________________________________________
        If anything can go wrong, fix it.  To hell with Murphy.
_____________________________________________________________________________
   Any opinions expressed herein are my own and not those of my employers.
_____________________________________________________________________________
 
 
 

Printing blank pages

Post by Walt Hultgren {rm » Sun, 31 Dec 1899 09:00:00



Quote:

>Please, can anyone offer some advice. I am running Informix 4gl 7.x
>on a SCO Openserver box. My problem is that every report job that
>I send from Informix has a blank page appended at the bottom of the
>report.

Most print spoolers in a multi-user environment are set up to keep the
printer pages aligned so that one user's output doesn't get mixed with
another.  A common way to do this is for the spooler to finish the final
page of output for each print job.

One possible cause of your problem is that your print spooler may be
doing that after the Informix report has dones the same thing.  You can
verify that by having a Unix job print exactly a full page of output and
see if the spooler "wastes" a trailing page like with the Informix job.

I did a quick-and-dirty check with a couple of Ace reports I had laying
around.  Both use the detault page length.  One has a PAGE TRAILER
section and exactly fills the final output page.  The other has no such
section and does not fill the final page.

You might investigate this area, then look at your spooler to see if
there are any options to disable the final slew-top-page.  If you have
an active multi-user environment, you'll have to coordinate this with
all of your other jobs, which may be pretty complicated.

Good luck,

Walt.

--

Emory University               UUCP: {...,gatech,rutgers,uunet}!emory!rmy!walt

Atlanta, GA  30329  USA       Voice: +1 404 727 0648

 
 
 

1. Report:prints blank page

I print a report from a pushButton method with the following code:

        var
                rep      Report
                repinfo  ReportPrintInfo
        endVar

        repinfo.name = "cratdump.rsl"
        repinfo.masterTable = ":priv:answer.db"
        rep.print(repinfo)

The report first prints a blank page and then prints the data on the
following pages.

How can I prevent the first blank page to print?

Different reports do not print any initial blank page why does this one?

2. Sybase WWW

3. Problem with printing blank pages in 2.6A

4. Connection question

5. printing a blank page?

6. How do I set a date field in an insert trigger?

7. Report prints with alternating blank pages...

8. Los Angeles Informix User Group still active?

9. SB+ Report writer reports printing one blank page

10. Why print a blank page at the end of a report

11. Blank Pages Print with Report

12. Page Printing Muti-Page Forms