cancel
Showing results for 
Search instead for 
Did you mean: 

Right Alignment for fields in PDF via Smartform

Former Member
0 Kudos

Hi All,

I am working on a PDF to be printed via a smartform.

My main issue is that i have some Numeric fields i.e Quantity fields and Currency Fields.

I want them to be shown as right aligned. But as these are CHAR17 and CHAR21 in display length.

I end up getting the pdf like shown below.

ABC Hamburger Strasse 1234 76,2 1346

7.87 3 2,54

Whereas the real values are

ABC Hamburger Strasse 1234,87 76,23 13462,54.

Now one solution to this issue is to have large columns, but i have to show 22 columns and hence that solution is out of question.

Now i want to know, is there any way i can show the values in the correct way as shown in second case.

I tried using Styles but even though the Paragraph is right aligned, the text coes left alined.

Am i missing something??

Thanks and Regards

Gaurav Kumar Raghav

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi

use &EKPO-MENGE& -> 1,234.560

&EKPO-MENGE(T)& -> 1234.560

Which will remove the ',' and u will have sufficient space to fill all values.

and Use &symbol(R)& for right alignment.

surya

Former Member
0 Kudos

When you fill your fields completely, like in the example (the text field has 17 spaces, the numeric one 21) right and left alignment act the same way, because there's nothing to align, it already is aligned.