cancel
Showing results for 
Search instead for 
Did you mean: 

Print ABAP List to Ledger size paper

michael_vollmer2
Explorer
0 Kudos

Having a problem getting ALV to print to Ledger.

I've create a Page format ZLEDGER (11x17)

a Format Type ZLEDGERALV

Assigned this to my Device Type., and copied the Actions for 65x255 Format

I assigned my Device Type to an OUtput type where I;ve set my default paper tray to Tray 4, and Assigned ZLEDGER to Tray 4.

When I attempt to print, the printer asks for "Letter" on on Tray 4.

Any ideas.

Mike

Accepted Solutions (1)

Accepted Solutions (1)

Sandra_Rossi
Active Contributor
0 Kudos

Could you paste the action for paper selection, and which Printer Description Language is it?

michael_vollmer2
Explorer
0 Kudos

Where would i find that, in the Printer Initialization?

Sandra_Rossi
Active Contributor
0 Kudos

exactly. If you don't know where it is, paste the whole printer initialization.

Note: in PCL, selecting the page size is the <ESC> & l # A command:

Letter = <ESC>&l2A

Ledger = <ESC>&l6A

michael_vollmer2
Explorer
0 Kudos

However, I've tried this before, and it did not work.. the only time I was able to get the the command &l6A recognized is if I put it in the First Page file.

  1. enter PJL mode and switch to PCL language

\e%-12345X@PJL\r\n

  1. Set Paper size 11x17

#\e&l6A

#\i<HPLJ4:ZLEDGER:SETUP>

#=================

  1. Support Devices

  2. imagePASS S1

#=================

  1. Staple

#=================

  1. Upper left in Portrait and Upper Right in Landscape(default)

#@PJL COMMENT CANPJL SET STAPLE = ONEUPLEFT\r\n

  1. Upper right in Portrait and Lower Right in Landscape

#@PJL COMMENT CANPJL SET STAPLE = ONEUPRIGHT\r\n

  1. Lower left in Portrait and Upper Left in Landscape

@PJL COMMENT CANPJL SET STAPLE = ONELOWLEFT\r\n

  1. Lower right in Portrait and Lower Left in Landscape

#@PJL COMMENT CANPJL SET STAPLE = ONELOWRIGHT\r\n

  1. Two left in Portrait and Two Top in Landscape

#@PJL COMMENT CANPJL SET STAPLE = TWOLEFT\r\n

  1. Two right in Portrait and Two bottom in Landscape

#@PJL COMMENT CANPJL SET STAPLE = TWORIGHT\r\n

#=================

  1. Hole Punch

#=================

  1. Left in Portrait and Top in Landscape

#@PJL COMMENT CANPJL SET PUNCH = LEFT\r\n

  1. Top in Portrait and Right in Landscape

#@PJL COMMENT CANPJL SET PUNCH = TOP\r\n

#================

  1. Output Bin

#================

  1. Upper tray

#@PJL COMMENT CANPJL SET OUTPUTBIN = FINISHER1\r\n

  1. Lower tray

#@PJL COMMENT CANPJL SET OUTPUTBIN = FINISHER2\r\n

#===============end

@PJL ENTER LANGUAGE=PCL\r\n

\e&l6A

  1. reset

\eE

  1. Landscape mode

\e&l1O

  1. ECMA-94 Latin 1 character set

\e(0N

  1. Skip perforation region on

\e&l1L

  1. set vertical spacing

#\e&l7.8C

  1. set top margin

\e&l1E

  1. set line spacing

\e&l8D

  1. set bottom margin

\e&l65F

  1. Define 2 macros: Macro 1 will select Normal font

  2. Macro 2 will select Bold font

  3. Start of MACRO 1:

\e&f1y0X

  1. select pitch 12, height 8

\e(s0p12h8v0s0b3T

  1. set horizontal spacing

\e&k12H

  1. End of MACRO 1:

\e&f1y1X

  1. Start of MACRO 2:

\e&f2y0X

  1. select pitch 12, height 8

\e(s0p12h8v0s3b3T

  1. set horizontal spacing

\e&k12H

  1. End of MACRO 2:

\e&f2y1X

  1. Execute Macro 1 to set normal font:

\e&f1Y\e&f2X

  1. Macros for drawing of frames.

\e&f470y0X\e(10U\e&k5H\xC5\e(0N\e&k5H\e&f470y1X

\e&f460y0X\e(10U\e&k5H\xC4\e(0N\e&k5H\e&f460y1X

\e&f461y0X\e(10U\e&k5H\xB3\e(0N\e&k5H\e&f461y1X

\e&f462y0X\e(10U\e&k5H\xDA\e(0N\e&k5H\e&f462y1X

\e&f463y0X\e(10U\e&k5H\xBF\e(0N\e&k5H\e&f463y1X

\e&f464y0X\e(10U\e&k5H\xC0\e(0N\e&k5H\e&f464y1X

\e&f465y0X\e(10U\e&k5H\xD9\e(0N\e&k5H\e&f465y1X

\e&f466y0X\e(10U\e&k5H\xC3\e(0N\e&k5H\e&f466y1X

\e&f467y0X\e(10U\e&k5H\xB4\e(0N\e&k5H\e&f467y1X

\e&f468y0X\e(10U\e&k5H\xC2\e(0N\e&k5H\e&f468y1X

\e&f469y0X\e(10U\e&k5H\xC1\e(0N\e&k5H\e&f469y1X

#<RSPO0060 - end of gene

Sandra_Rossi
Active Contributor
0 Kudos

Be careful, you have to put it after the RESET command

and also not in the PJL section, as it is a PCL command

Edited by: Sandra Rossi on Jan 23, 2010 12:23 AM

Answers (0)