Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

font

Former Member
0 Likes
940

hello

how can i change the font in printing?

thanks

8 REPLIES 8
Read only

Former Member
0 Likes
919

Hello Yoshi,

You should be a bit more specific: What do you want to print Smartform, Sapscript, ABAP-list.....

Kind regards,

John.

Read only

0 Likes
919

Hi,

John, I did check the tables and it seems to be ok. BTW I'm starting to think it's not the way to go, I don't want it to be printer-specific.

Joseph, Your lovely example did print a lot of "Hello"s, unfortunately they all are in same size.

If you have any other ideas about printing reports with deferent letter sizes please let me know.

Thank You.

Read only

Former Member
0 Likes
919

It's an ABAP list. I want it to be printed with large letters and/or bold font.

I'm using print-control but it's not helping.

Thanks.

Read only

0 Likes
919

Hi Yoshi,

Did you check tables TSP03 and T022D for the specific printer and font code? Only if an entry is available in both tables the PRINT-CONTROL will work, otherwise it is ignored completely.

Kind regards,

John.

Read only

0 Likes
919

U can use colors and background.

But i dont think u can change the font in an abap list.

Read only

0 Likes
919

hi yossi,

try this report and let me know what happened:

DATA: it_prnt LIKE t022d OCCURS 0 WITH HEADER LINE.

SELECT * INTO CORRESPONDING FIELDS OF TABLE it_prnt

FROM t022d

WHERE typ = 'ZHPLJ4PS'.

NEW-PAGE PRINT ON .

LOOP AT it_prnt.

PRINT-CONTROL FUNCTION: 'COL3H' LINE 1,

'COL1V' line 2,

'COLN6' line 3,

'COLN6' line 4,

'COL3H' line 5.

PRINT-CONTROL FUNCTION: 'COL3H'.

WRITE: / 'Hello', it_prnt-prctl.

PRINT-CONTROL FUNCTION: 'COL1V'.

WRITE: / 'Hello', it_prnt-prctl.

PRINT-CONTROL FUNCTION: 'COLN6'.

WRITE: / 'Hello', it_prnt-prctl.

WRITE: / 'Hello', it_prnt-prctl.

PRINT-CONTROL FUNCTION: 'COL3H'.

WRITE: / 'Hello', it_prnt-prctl.

ENDLOOP.

<b>NEW-PAGE PRINT OFF.</b>

Message was edited by: joseph fryda

Read only

0 Likes
919

HI joseph,

please give me a solution.

i developed a layout, which is a pre stationary work, i hav formatted boxes in the papers provided to me and the data from layout should print on the correct positions on paper.

one text field which is of lenght 40 is crossing the box provided to me. I want to change only its font size to smaller so that it can print properly.

how can i do that.hope u understod my probs..

please tell me im in very much need of this req.

waiting for reply

Kumar

Read only

Former Member
0 Likes
919

Hi Yossi,

I have also tried the above program but i did not worked.

I have read from somewhere that these print control commands dont work in SAP 4.7 . They will work in previous releases of 4.7 but not in this.

I dont know how to do it ?

If anybody know plese share it and I hope whatever the solution will be but it will not be printer specific.

Thanks and regards

Gurpreet Singh