rPad or Padright in Fastreport VCL text export

Asked

Viewed 30 times

0

I am developing a layout that will serve as a basis for exporting a standard CNAB 240 or CNAB 400 text file (billets). I was able to generate the information, everything straight.

The problem is that the lines need to contain exactly 240 characters (or 400). I inserted a memo at the end of each line with empty spaces to complete the number of characters required and tried to combine the properties of the report, band and even the memo, but none of them worked. It would take something like rPad or Padright (unless it had such an effect).

There’s a way to fix it?

Technical aspects:

  • Version of Fastreport: 6.7.9;

  • Type of report: Dotmatrixreport

    (DMP);

1 answer

1


I don’t know which version of Delphi you’re using, but if it’s a newer version, in class helperTStringHelper has the function PadRight()

Only need include in uses System.StrUtils

example of use:

strVar.PadRight(240, ' ')

Browser other questions tagged

You are not signed in. Login or sign up in order to post.