‎2007 May 07 3:41 PM
Hello,
I am outputting a report with line size of 220. When i print the report, the font size appear small. Viewable but small. I know when we increase the line-size, the font gets low, but is there anyway to increase the font size ..
Thanks a lot.
Shehryar Dahar
‎2007 May 07 4:52 PM
Hi Shehryar,
There is a way.
If you are looking for increasing the font size in the Output list you can do it manually at the output please follow this path:
Step 1: Execute the Basic list , it gets displayed with smaller font.
Step 2: Click on the <b>'Customizing the Layout'</b> button , the last buton on the right hand side of the application tool bar.
step 3: click on 'Font(I18N) , you willl get an window to increase the font & print.
But, do you need it programmatically, please let me know if yes.
Regards,
Daniel
‎2007 May 07 4:02 PM
I don't think you have any option to play with the fonts in a normal ABAP report.. take a look at the PRINT-CONTROL options.. may be you will get an idea..
~Suresh
‎2007 May 07 4:11 PM
Hi Shehryar,
You can't increase font size in normal classical report.
Use sap script or smartforms to do so. u can increase / decrease font size in script and smartforms.
Reward points if helpful.
Regards,
Hemant
‎2007 May 07 4:48 PM
Hi,
Try with following example:
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
Be aware that the PRINT-CONTROL is not supported in SAP Enterprise 4.7
For more information read SAP OSS notes 66478.
Regards,
Bhaskar
‎2007 May 07 4:52 PM
Hi Shehryar,
There is a way.
If you are looking for increasing the font size in the Output list you can do it manually at the output please follow this path:
Step 1: Execute the Basic list , it gets displayed with smaller font.
Step 2: Click on the <b>'Customizing the Layout'</b> button , the last buton on the right hand side of the application tool bar.
step 3: click on 'Font(I18N) , you willl get an window to increase the font & print.
But, do you need it programmatically, please let me know if yes.
Regards,
Daniel
‎2007 May 08 8:40 AM
Hello Daniel ,
I increased the layout font size, but it only increases while previewing the list and not when printing. Printing remains the same.
Regards,
Shehryar dahar
‎2007 May 08 9:25 AM
Shehyar,
You have to change the character format font size which you have declared in smartstyles used for the smartforms.
K.Kiran.
Oops,I thought you are talking about Smartform.Sorry.
Message was edited by:
Kiran K
‎2007 May 08 11:33 AM
Hi
I think you can use PRINT CONTROL Option in your report,which allows you to change the size of the font.
Because print control gives you the option of printing the font on required data.
PLZ REWARD
‎2007 May 08 12:05 PM
Hi Shehryar,
Yes, its possible to give colors and fonts to report text.
Check this sample program <b>DD_STYLE_TABLE</b> to print text in reports with fonts and colors and this report is based on class <b>CL_DD_DOCUMENT</b> with its methods and this class is avialable from 4.7 onwards.
Plz reward if it is helpful....
Thanks,
Vinay