Application Development 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: 

How to control the font size in report.

Former Member
0 Kudos
1,914

Hi Guys,

i have to make larger fonts in my report header i.e. at Top-of-page.

How can i control the font size by coding?

Thanx in advance..

6 REPLIES 6

Former Member
0 Kudos
420

Hi

In reports<b> it is not possible to change the font size</b>

<b>Reward points for useful Answers</b>

Regards

Anji

Former Member
0 Kudos
420

Changing the fonts in Print using ABAP is not possible. as basic report output is a text editor.

By changing "Customizing of Local Layout" will only change in display screen and not in print.

One possible way to create a new printer formatr thry SPAD and use that format in while printing.

to know more details about SPAD

Using SPAD - SAP Spool Administration to print different paper size

The SAP spool system manages its own output devices. This includes mostly printers, but also fax and archiving devices. In order for you to use output devices defined in your operating system from the SAP System, you must define these devices in the SAP spool system.

Print to a dot matrix printer using computer paper with 66 lines

Define paper types

Formatting process Z_60_135

Page format DINA4

Orientation tick both Portrait and Orientation

Type in the comment and click save

Device initialization

Device type - OKI341

Formatting process Z_60_135 then click Execute

Double click Printer initilization

You must key the 66 lines hexadecimals for your printer. ( line no 9)

1 # oki341 x_paper

2 # reset

3 # \e\0x40

4 # select codepage multilingual 850

5 \e\0x52\0x1a

6 # disable skip perforation mode

7 \e\0x4f

8 # select 6 lpi

9 \e\0x32

10 # select page length 66 lines (66=hex $42)

11 \e\0x43\0x42

12 # select 10 cpi font

13 \e\0x60

CHECK THIS LINKS

http://help.sap.com/saphelp_nw04s/helpdata/en/df/abbb3f8e236d3fe10000000a114084/content.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/5a/4df93bad37f87ae10000000a114084/content.htm

http://www.geocities.com/SiliconValley/Grid/4858/sap/Basis/printprobs_solutions.htm

Hope this helps you

Regards

Pavan

Former Member
0 Kudos
420

Hi,

Follow these steps :-

1, In the Screen editor of ur report choose the last menu button : "Customizing of Local Layout "

2, Choose Font Option

3, Set the required font.

For More Info Go thru this Link,

http://www.sapdesignguild.org/resources/MiniSG-old/BCMSG03E_DEL.htm

http://sap4.com/modules.php?name=conteni2&pa=showpagina&pid=100

Regards,

Priyanka.

Former Member
0 Kudos
420

Hi Biswajit,

In top-of-page event of alv report try this,

DATA: WA_LINE TYPE SLIS_LISTHEADER.,
WA_LINE-TYP  = 'S'.
 H = Header, S = Selection, A = Action

<i>Hope help you.

Give reward if found helpful

Regards

Debjani</i>

Former Member
0 Kudos
420

Hi Biswajit,

I downloaded a piece of code from SAP-IMG ...its about printing fonts...see if this helps u....

REPORT ZFONT NO STANDARD PAGE HEADING LINE-SIZE 80 LINE-COUNT 65.

  • Start of print-control

NEW-PAGE PRINT ON.

PRINT-CONTROL FUNCTION 'SF000'.

WRITE: / 'This is CPI 20'.

SKIP.

PRINT-CONTROL FUNCTION 'SF020'.

WRITE: / 'This is CPI 6'.

SKIP.

PRINT-CONTROL FUNCTION 'SF008'.

WRITE: / 'This is CPI 12'.

  • Depending on your SAP printer device, this may also work

PRINT-CONTROL FONT 1 LPI 6.

  • you can try to change font and LPI numbers

WRITE: / 'font 1 lpi 6'.

PRINT-CONTROL FONT 2 LPI 6.

WRITE: / 'font 2 lpi 6'.

PRINT-CONTROL FONT 3 LPI 6.

WRITE: / 'font 3 lpi 6'.

  • End of print-control

NEW-PAGE PRINT OFF.

*--- End of Program

<b>

reward point if useful.....</b>

regards.....

Abhay Singh.

Former Member
0 Kudos
420

hi,

In this form..

form top-of-page1.
 
data: header type slis_t_listheader,
wa type slis_listheader. type n.

 
wa-typ = 'H'.     "give H, which is the larger font
wa-info = 'dd'.
append wa to header.
 
 
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = header.
 
ENDFORM.

Rgds

Reshma