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

Problem with Script Printout Alignment

Former Member
0 Likes
506


Hi Experts,

I have a Long text. in the long text I have maintained some static text ( text in Table format. long text has vertical and horzontal lines.)

I have checked in print priview of long text, the alignment is working fine.

I have called this long text in One Script Via Include statement.

But in print priview of the script, this long text is not printed properly. i.e. Alignment is missing.

I have debugged the Script, In debugging the long text is seeing good in alignment.

But in print priview of the script is not working.

Please Suggest me how to get correct the alignment in Script Print Priview.

Thanks in Advance.

1 REPLY 1
Read only

0 Likes
465

Hi,

the alignment of text in printed output depends on the font used. There are fixed-width fonts (like COURIER) where every char (including SPACE) has same width.

And there are proportionally spaced fonts (HELVE, TIMES) where chars have different widths. So SAPscript must calculate alignment (if you want e.g. centered or block-aligned formatting) depending on the actual font used (this is determined by the used pritner+device type).

The active font is selected in your form  (or a style if you are using one).

In the debugger you cannot see if text is properly "aligned" when using a proportional font.

If you want table-like layout in SCR (like text in two columns), you cannot use spaces between columns when a prop. font is used, you should use tabulator moves (,, in the form) to align. For this, define tab positions in a paragraph definition in your form.

Regards,

Alex