cancel
Showing results for 
Search instead for 
Did you mean: 

How to edit font of printer depend on size of abap list report.

Former Member
0 Kudos

Hi all,

How to edit Format type"X_65_255" of HP Laser printer when print out the same preview in abap list?

Example:

I want print as below:

Title of abap list: AAAAAAAAAAAA --> size 15

body of abap list:

colum1 column2 columm3 ---> size 10

s1 cccc bbbb -


> size 10

I need it whenever you find time out of your busy schedule.. Please help me .. Thank you so much.

Edited by: kishan P on Oct 13, 2010 12:02 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Under Txn SPAD.. Select your Device type, then go to the "list of implementation formats" then choose "X_65_255" then click on "Printer initialization" there you maintain the following code

select arial 24 cpi 15 point normal

\e(s0p24h15v0s0b16602T

select arial 24 cpi 15 point bold

\e(s0p24h15v0s3b16602T

Regards

GK.

Former Member
0 Kudos

Hi ,

Thank you so much for your coding but pls give me step by step because I didn't see

"list of implementation formats" item and "Printer initialization" item in which menu ?

Former Member
0 Kudos

Hi,

I have to set font type on matrix printer.

Can You please explain how did you find

\e(s0p24h15v0s0b16602T

for

select arial 24 cpi 15 point normal

?

As I can see, all the escapes defined in "Printer initialization" are in

\e\0xqw\0xer0x\tz

form, where qw, er, tz are hexa decimal interpretation of escapes from printer manual.

I am confused where did You find annotation such as

\e(s0p24h15v0s3b16602T

Thank you, cheers.

p.s. - if You want me to open another subject with this question so I can express my gratitude, please let me know.

p.s. - in SPAD > Device Type, Print Control tab, we have

SF005 | 1B6B001B4D121B57001B461B35

and I know the

"1B"

stands for

\e

but then at "6b........" I am lost...

Former Member
0 Kudos

Please do.

Rob

YasinDelice
Discoverer
0 Kudos

Hi,

Can we align the output to the center of page with these commands.

Answers (1)

Answers (1)

aidan_black
Active Contributor
0 Kudos

hi,

The printer initialization can be accessed by:

SPAD -> Full Admin -> Device Types -> <Device Type> -> Formats -> e.g. X_65_132 -> Printer Initialization

There should already be a command here for setting the font and size in a device type like e.g. HPLJ5. In some newer device types, this done by the kerenl and the printer initialization is empty. Usually the font size is already optimized to fit the number of characters required into the page. e.g. for X_65_255 list, he font is designed to fit 255 characters intoth e page so it needs to be smaller than for format X_65_120.

Also font Arial is a proportional font and is not a good font for ABAP lists. Ususally a non-proportional font like Courier is used. This is for alignment purposes.

Regards,

Aidan