vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello, running Progress V8.3C11 under SCO unix OSR5.06, Xerox PE120i printer (ethernet LPD connection, using SCO unix remote printer). If I use the 'page-size' option in my progress programs, I always get an empty blank page at the end of the print job. let see the example: output to my_file page-size 60. def var toto as int. do toto = 1 to 125: put "cpt=" toto skip. end. output close. unix silent cat my-file|lp -dPE120 . with this I get 1st page with 1to60, 2nd page with 61to120, 3rd page with 121to125, and a empty blank page. if I comment the 'page-size option' I don't get the empty blank page. if I print from Unix the program code, I don't get the empty blank page. Does the problem come from Progress or from the Xerox printer ? Thank's. F. STOCK -- **************** Enlever ".remove-me" dans l'adresse. Remove ".remove-me" from e-mail. **************** |
| |||
| Frédéric STOCK wrote: > running Progress V8.3C11 under SCO unix OSR5.06, Xerox PE120i printer > (ethernet LPD connection, using SCO unix remote printer). > If I use the 'page-size' option in my progress programs, I always get > an empty blank page at the end of the print job. > let see the example: > output to my_file page-size 60. > def var toto as int. > do toto = 1 to 125: > put "cpt=" toto skip. > end. > output close. > unix silent cat my-file|lp -dPE120 . Check my-file for the number of CHR(12) characters (^L). If there are three, and one of them is the last character in the file, the blank page is added by the spooling system. -- Peter de Vries, ICQ 7787398 |
| |||
| Hi Peter, yes there are 3 ^L character in my_file, and one is at the end of the file. but how to continue to use the page-size function and resolve the "double form feed" ? why don't it appear on other printers we've got (Kyocera FS1000 (lpt), HP2100TN (network), HP8100DN (network) ? Thank's. F. STOCK Peter de Vries a écrit : >Frédéric STOCK wrote: > > > >>running Progress V8.3C11 under SCO unix OSR5.06, Xerox PE120i printer >>(ethernet LPD connection, using SCO unix remote printer). >>If I use the 'page-size' option in my progress programs, I always get >>an empty blank page at the end of the print job. >>let see the example: >> >> > > > >>output to my_file page-size 60. >>def var toto as int. >>do toto = 1 to 125: >>put "cpt=" toto skip. >>end. >>output close. >>unix silent cat my-file|lp -dPE120 . >> >> > >Check my-file for the number of CHR(12) characters (^L). If there are >three, and one of them is the last character in the file, the blank >page is added by the spooling system. > > > -- **************** Enlever ".remove-me" dans l'adresse. Remove ".remove-me" from e-mail. **************** |
| |||
| 3 Options I can think of: 1. The SCO printer interface is tagging a ^L onto the print job as a normal default. You can customize the interface to omit the trailing ^L (my preferred solution.) 2. Since your example shows pre-spooling the report to a file, you can reprocess the print file to omit the trailing ^L before sending it to the printer. 3. Many printers have an option to not print empty pages, IE ^L^L. You could invistigate this for your particular printer. Regards...Dan. "Frédéric STOCK" <juramont.remove-me@club-internet.fr> wrote in message news:41F8A0A1.5040000@club-internet.fr... > Hi Peter, > > yes there are 3 ^L character in my_file, and one is at the end of the > file. > but how to continue to use the page-size function and resolve the "double > form feed" ? > why don't it appear on other printers we've got (Kyocera FS1000 (lpt), > HP2100TN (network), HP8100DN (network) ? > > Thank's. > F. STOCK > > Peter de Vries a écrit : > >>Frédéric STOCK wrote: >> >> >>>running Progress V8.3C11 under SCO unix OSR5.06, Xerox PE120i printer >>>(ethernet LPD connection, using SCO unix remote printer). >>>If I use the 'page-size' option in my progress programs, I always get an >>>empty blank page at the end of the print job. >>>let see the example: >>> >> >> >>>output to my_file page-size 60. >>>def var toto as int. >>>do toto = 1 to 125: >>>put "cpt=" toto skip. >>>end. >>>output close. >>>unix silent cat my-file|lp -dPE120 . >>> >> >>Check my-file for the number of CHR(12) characters (^L). If there are >>three, and one of them is the last character in the file, the blank >>page is added by the spooling system. >> >> > > -- > **************** > Enlever ".remove-me" dans l'adresse. > Remove ".remove-me" from e-mail. > **************** |
| |||
| Hi, thank's; F. STOCK jdanskinner@jdanskinner.com a écrit : >3 Options I can think of: > >1. The SCO printer interface is tagging a ^L onto > the print job as a normal default. > You can customize the interface to omit the trailing ^L > (my preferred solution.) > >2. Since your example shows pre-spooling the report > to a file, you can reprocess the print file to omit > the trailing ^L before sending it to the printer. > >3. Many printers have an option to not print empty > pages, IE ^L^L. You could invistigate this for your > particular printer. > >Regards...Dan. >"Frédéric STOCK" <juramont.remove-me@club-internet.fr> wrote in message >news:41F8A0A1.5040000@club-internet.fr... > > >>Hi Peter, >> >>yes there are 3 ^L character in my_file, and one is at the end of the >>file. >>but how to continue to use the page-size function and resolve the "double >>form feed" ? >>why don't it appear on other printers we've got (Kyocera FS1000 (lpt), >>HP2100TN (network), HP8100DN (network) ? >> >>Thank's. >>F. STOCK >> >>Peter de Vries a écrit : >> >> >> >>>Frédéric STOCK wrote: >>> >>> >>> >>> >>>>running Progress V8.3C11 under SCO unix OSR5.06, Xerox PE120i printer >>>>(ethernet LPD connection, using SCO unix remote printer). >>>>If I use the 'page-size' option in my progress programs, I always get an >>>>empty blank page at the end of the print job. >>>>let see the example: >>>> >>>> >>>> >>> >>> >>>>output to my_file page-size 60. >>>>def var toto as int. >>>>do toto = 1 to 125: >>>>put "cpt=" toto skip. >>>>end. >>>>output close. >>>>unix silent cat my-file|lp -dPE120 . >>>> >>>> >>>> >>>Check my-file for the number of CHR(12) characters (^L). If there are >>>three, and one of them is the last character in the file, the blank >>>page is added by the spooling system. >>> >>> >>> >>> >>-- >>**************** >>Enlever ".remove-me" dans l'adresse. >>Remove ".remove-me" from e-mail. >>**************** >> >> > > > > -- **************** Enlever ".remove-me" dans l'adresse. Remove ".remove-me" from e-mail. **************** |
| ||||
| You can also try adding a switch to the spooler program to omit the form feed and also the page separator. "Frédéric STOCK" <juramont.remove-me@club-internet.fr> wrote in message news:41f7c372$0$26205$7a628cd7@news.club-internet.fr... > Hello, > > running Progress V8.3C11 under SCO unix OSR5.06, Xerox PE120i printer > (ethernet LPD connection, using SCO unix remote printer). > If I use the 'page-size' option in my progress programs, I always get an > empty blank page at the end of the print job. > let see the example: > > output to my_file page-size 60. > def var toto as int. > do toto = 1 to 125: > put "cpt=" toto skip. > end. > output close. > unix silent cat my-file|lp -dPE120 . > > with this I get 1st page with 1to60, 2nd page with 61to120, 3rd page with > 121to125, and a empty blank page. > if I comment the 'page-size option' I don't get the empty blank page. > > if I print from Unix the program code, I don't get the empty blank page. > Does the problem come from Progress or from the Xerox printer ? > > Thank's. > F. STOCK > > -- > **************** > Enlever ".remove-me" dans l'adresse. > Remove ".remove-me" from e-mail. > **************** |