![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Folks I'm trying to get some procs to print their output to a laser printer but come out in landscape format. The idea I've had is to use the Heading command in the proc and to send down the PCL5 command string at the start of the job. Here's the PCL5 codes: ^[E Reset the printer ^[&l1O Landscape orientation So in my proc I try Heading " ^[E^[&l1O This is my heading text" But what I get printed (in portrait) is just: ^[E^[&l1O This is my heading text Obviously the PCL5 commands are being taken as literal text. Is my command syntax wrong ?? Any suggestions appreciated. John |
#3
| |||
| |||
|
|
Folks I'm trying to get some procs to print their output to a laser printer but come out in landscape format. The idea I've had is to use the Heading command in the proc and to send down the PCL5 command string at the start of the job. Here's the PCL5 codes: ^[E Reset the printer ^[&l1O Landscape orientation So in my proc I try Heading " ^[E^[&l1O This is my heading text" But what I get printed (in portrait) is just: ^[E^[&l1O This is my heading text Obviously the PCL5 commands are being taken as literal text. Is my command syntax wrong ?? Any suggestions appreciated. John Jaye |
#4
| |||
| |||
|
|
Goo'day, This worked in UniVerse and AP/PRO. QM doesn't need it... Tee Hee, a little bit. snip Jaye Regards, |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Folks I'm trying to get some procs to print their output to a laser printer but come out in landscape format. The idea I've had is to use the Heading command in the proc and to send down the PCL5 command string at the start of the job. Here's the PCL5 codes: ^[E Reset the printer ^[&l1O Landscape orientation So in my proc I try Heading " ^[E^[&l1O This is my heading text" But what I get printed (in portrait) is just: ^[E^[&l1O This is my heading text Obviously the PCL5 commands are being taken as literal text. Is my command syntax wrong ?? Any suggestions appreciated. John |
#7
| |||
| |||
|
|
Folks I'm trying to get some procs to print their output to a laser printer but come out in landscape format. The idea I've had is to use the Heading command in the proc and to send down the PCL5 command string at the start of the job. Here's the PCL5 codes: ^[E Reset the printer ^[&l1O Landscape orientation So in my proc I try Heading " ^[E^[&l1O This is my heading text" But what I get printed (in portrait) is just: ^[E^[&l1O This is my heading text Obviously the PCL5 commands are being taken as literal text. Is my command syntax wrong ?? Any suggestions appreciated. John |
#8
| |||
| |||
|
|
I've created record in my tables file for various font sizes and orientations - these records contain the actual PCL escape sequences needed with embedded char(27)'s as needed. I then use the U01AD user exit to place them into the header. Under each font size I have two attributes - one for Portrait and the second for landscape. TABLES 12CPI: E (10U (s0p12h0s3b4099T E &l1O (10U (s0p12h0s3b4099T Proc: ... H HEADING " IF A1 = T G 45 *** check if displaying on terminal U01AD TABLES 12CPI 1 S *** change the one to a two for landscape 45 H ... Dave Gordon On Feb 8, 8:58 pm, "Corporate apparatchik" <johnmarsh... (AT) xtra (DOT) co.nz wrote: Folks I'm trying to get some procs to print their output to a laser printer but come out in landscape format. The idea I've had is to use the Heading command in the proc and to send down the PCL5 command string at the start of the job. Here's the PCL5 codes: ^[E Reset the printer ^[&l1O Landscape orientation So in my proc I try Heading " ^[E^[&l1O This is my heading text" But what I get printed (in portrait) is just: ^[E^[&l1O This is my heading text Obviously the PCL5 commands are being taken as literal text. Is my command syntax wrong ?? Any suggestions appreciated. John- Hide quoted text - - Show quoted text - |
#9
| |||
| |||
|
|
Hi Dave I tried what you suggested in a similar fashion to your example below and everything worked except that I found that the PCL5 codes were still being interpreted as text in the resultant heading and just printed out as part of the heading. I suspect that I have not embedded the char(27) characters correctly in the record I have created of the PCL5 string. How did you enter the string in your example below - using the line editor? John On Feb 13, 4:46 am, "DaveG" <daveg_0... (AT) iwon (DOT) com> wrote: I've created record in my tables file for various font sizes and orientations - these records contain the actual PCL escape sequences needed with embedded char(27)'s as needed. I then use the U01AD user exit to place them into the header. Under each font size I have two attributes - one for Portrait and the second for landscape. TABLES 12CPI: E (10U (s0p12h0s3b4099T E &l1O (10U (s0p12h0s3b4099T Proc: ... H HEADING " IF A1 = T G 45 *** check if displaying on terminal U01AD TABLES 12CPI 1 S *** change the one to a two for landscape 45 H ... Dave Gordon On Feb 8, 8:58 pm, "Corporate apparatchik" <johnmarsh... (AT) xtra (DOT) co.nz wrote: Folks I'm trying to get some procs to print their output to a laser printer but come out in landscape format. The idea I've had is to use the Heading command in the proc and to send down the PCL5 command string at the start of the job. Here's the PCL5 codes: ^[E Reset the printer ^[&l1O Landscape orientation So in my proc I try Heading " ^[E^[&l1O This is my heading text" But what I get printed (in portrait) is just: ^[E^[&l1O This is my heading text Obviously the PCL5 commands are being taken as literal text. Is my command syntax wrong ?? Any suggestions appreciated. John- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - |
#10
| |||
| |||
|
|
I wrote a couple line program to write the string to the record. I have a single record that contains all the PCL codes I need in basic programs - The core of which was originally posted by Alan Gruskoff many years back. ESC = CHAR(27) PCL.PC8 = ESC:"(10U" PCL.RESET = ESC:"E" PCL.PORTRAIT = ESC:"&l0O" PCL.LANDSCAPE = ESC:"&l1O" PCL.17CPI = PCL.PC8:ESC:'(s0p17h0s3b4099T' ;* LP 17 CPI REC = PCL.RESET:PCL.PORTRAIT:PCL.17CPI REC<2> = PLC.RESET:PCL.LANDSCAPE:PCL.17CPI WRITE REC ON TABLES,'12CPI' |
![]() |
| Thread Tools | |
| Display Modes | |
| |