FastReport getting crazy with numeric string

1

I like FastReport a lot because of the many layout options we can do in it, but I confess that sometimes it gets on my nerves and if I could change it.

I'm inserting the following string into a Memo field:

    MemoExames.Lines.Add(Copy(<frxDBDatasetAPExames."codigo_tuss">+'00000000', 1,8)
      +' - '+Format('%-40s', [<frxDBDatasetAPExames."nome_tecnico">])
      +' '+DateToStr(<frxDBDatasetAPExames."data_ven">));

The result should be:

00000000 - EXAME CLÍNICO - ASO                      28/03/2012

But he insists on putting

EXAME CLÍNICO - ASO                      28/03/2012 - 00000000

He understands that zeros have to go right ... if I change 0 by X it formats correctly, but if it is number he insists on putting it on the right, I tried everything, but the damn does not obey me

Has anyone ever been through this?

    
asked by anonymous 24.04.2018 / 17:56

0 answers