![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
We are having a problem printing from a UniVerse Basic program. We are printing to an HP laserjet 5si laser printer, and using PCL 5 to format the printouts. The printer accepts the PCL, but no matter what we do we can't get more than 60 lines on the page. We need to start at line two and print 62 lines. Here is our code: ESC=CHAR(027) FONT.TOP.MARGIN = ESC:"&l1e" TEXT.LENGTH = ESC:"&l62F" PRINTER ON PRINT FONT.TOP.MARGIN:TEXT.LENGTH EXECUTE 'SETPTR 0,80,62,0,0,1,NFMT,FORM ICSPCL,NHEAD' PRINT '1' PRINT '2' PRINT etc, etc, etc... If we specify a number lower than 60 for the text length, it seems to work, but we can't get any more than 60 lines. We would appreciate any ideas as to why we can only get 60 lines per page. Thanks. |
#4
| |||
| |||
|
|
We are having a problem printing from a UniVerse Basic program. We are printing to an HP laserjet 5si laser printer, and using PCL 5 to format the printouts. The printer accepts the PCL, but no matter what we do we can't get more than 60 lines on the page. We need to start at line two and print 62 lines. Here is our code: ESC=CHAR(027) FONT.TOP.MARGIN = ESC:"&l1e" TEXT.LENGTH = ESC:"&l62F" PRINTER ON PRINT FONT.TOP.MARGIN:TEXT.LENGTH EXECUTE 'SETPTR 0,80,62,0,0,1,NFMT,FORM ICSPCL,NHEAD' PRINT '1' PRINT '2' PRINT etc, etc, etc... If we specify a number lower than 60 for the text length, it seems to work, but we can't get any more than 60 lines. We would appreciate any ideas as to why we can only get 60 lines per page. Thanks. |
#5
| |||
| |||
|
|
We are having a problem printing from a UniVerse Basic program. We are printing to an HP laserjet 5si laser printer, and using PCL 5 to format the printouts. The printer accepts the PCL, but no matter what we do we can't get more than 60 lines on the page. We need to start at line two and print 62 lines. Here is our code: ESC=CHAR(027) FONT.TOP.MARGIN = ESC:"&l1e" TEXT.LENGTH = ESC:"&l62F" PRINTER ON PRINT FONT.TOP.MARGIN:TEXT.LENGTH EXECUTE 'SETPTR 0,80,62,0,0,1,NFMT,FORM ICSPCL,NHEAD' PRINT '1' PRINT '2' PRINT etc, etc, etc... If we specify a number lower than 60 for the text length, it seems to work, but we can't get any more than 60 lines. We would appreciate any ideas as to why we can only get 60 lines per page. Thanks. -- Posted via http://dbforums.com |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
In news:3557584.1067957533 (AT) dbforums (DOT) com, mkamler <member46952 (AT) dbforums (DOT) com> typed: : We are having a problem printing from a UniVerse Basic program. We : are printing to an HP laserjet 5si laser printer, and using PCL 5 to : format the printouts. The printer accepts the PCL, but no matter : what we do we can't get more than 60 lines on the page. We need to : start at line two and print 62 lines. Here is our code: : : : : : : ESC=CHAR(027) : : : : FONT.TOP.MARGIN = ESC:"&l1e" You are setting your top margin to 1 line Default top margin: 1/2 inch Default bottom margin: 1/2 inch Page Size: 11 inches Effective page size: 10.0 Number of lines at 6 lines per inch(default): 10 x 6 = 60 lines per page The PCL Command above has to end with a "E" not an "e" Example ESC:"&l0E" will set the top margin to zero. Hope this helps, Donald Verhagen : If we specify a number lower than 60 for the text length, it seems to : work, but we can't get any more than 60 lines. We would appreciate : any ideas as to why we can only get 60 lines per page. Thanks. |
#8
| |||
| |||
|
|
Goo'day, One method I've seen in an instance (UniVerse) where a BASIC program is used to (a) send PCL sequences for lines, shadowing, headings, et al and then (b) revert to a font that is 10cpi/6lpi and then (c) use PRINT as one normally would in a BASIC program and they found that page throws were getting in the way at "the bottom of the page" is to revert to PCL addressing ie ESC:'*p0x3200Y': followed by what is required to print at the bottom of the page..... At 300 dpi it's easy enough apparently to work out that 50 dots = 1 line @ 6lpi ....... On Tue, 4 Nov 2003 11:03:26 -0500, "Don Verhagen" news (AT) southeast-florida (DOT) com> wrote: In news:3557584.1067957533 (AT) dbforums (DOT) com, mkamler <member46952 (AT) dbforums (DOT) com> typed: : We are having a problem printing from a UniVerse Basic program. We : are printing to an HP laserjet 5si laser printer, and using PCL 5 to : format the printouts. The printer accepts the PCL, but no matter : what we do we can't get more than 60 lines on the page. We need to : start at line two and print 62 lines. Here is our code: : : : : : : ESC=CHAR(027) : : : : FONT.TOP.MARGIN = ESC:"&l1e" You are setting your top margin to 1 line Default top margin: 1/2 inch Default bottom margin: 1/2 inch Page Size: 11 inches Effective page size: 10.0 Number of lines at 6 lines per inch(default): 10 x 6 = 60 lines per page The PCL Command above has to end with a "E" not an "e" Example ESC:"&l0E" will set the top margin to zero. Hope this helps, Donald Verhagen : If we specify a number lower than 60 for the text length, it seems to : work, but we can't get any more than 60 lines. We would appreciate : any ideas as to why we can only get 60 lines per page. Thanks. Regards, Bruce Nichol Talon Computer Services ALBURY NSW Australia If it ain't broke, fix it until it is.... |
![]() |
| Thread Tools | |
| Display Modes | |
| |