‎2014 Sep 02 9:19 AM
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.
‎2014 Sep 02 4:25 PM
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