[SOLVED] field does not work positioning - left right- width

Good evening

There is that field in the pdf application which shows 20 characters. How can I display only the 10 first ones?
I tried with the “Width” but it did not work.
Am I doing something wrong?

Also when I’m changing the values in the x, y properties, which set the place of the fields upon the print report, selecting the “right” alignment then the values of the fields are showing the one on the other.

thank you for your time

capture1.JPG

1.JPG

2.JPG

Hello,

You can create a function in your library like this:

<?php
//Limit character
function limit_char($string, $size, $encode = ‘UTF-8’) {
$string = mb_substr($string, 0, $size, $encode);
return $string;
}//end limit character
?>

And in your OnRecord event you call:

{YOUR_FIELD} = limit_char({YOUR_FIELD},10);

And solve your first problem.

In your second problem, you need to configure the Width of field, only this.

Thank you!

Hello, thank you for your fast reply

I tried the function limit_char but there was an error

For my second problem, is it possible for you to send me a screenshot as an example?
I couldnt fully understand the problem…

Thank you for your time

1.JPG

2.JPG

3.JPG

4.JPG

Hello,

You need just create a <b>library</b>.

See the attached pictures.

After create your library, call the same function in your application.

Thank you!

library_1.jpg

library_2.jpg

library3.jpg

Hello Thomas

Thank you very much! It works excellent!!!

On the other hand, there is still the problem with the alignment…

When I’m changing the values in the x, y properties, which set the place of the fields upon the print report, selecting the “rightalignment then the values of the fields are showing the one on the other.

Am I doing something wrong?

Thank you!

4.JPG

5.JPG

Hello Thomas

Everythig is solved! Thank you for you time and for your help!

Hello,

Try changing the width of gradual way, then you will see a change.
Start with small values, 5, 7, 10, then you to observe it comes effect on the application, if not, you increase to 20, 25, 30. But about the right alignment solution is the width.

Thank you.

Hello

I tried the method you told me earlier and it was working fine. Unfortunately with the new update (version 8.00.0043 ) it doesn’t work anymore.
How can I fix it?

Thank you