I'm trying to add leading zeros to 'Record Number' special field provided by Crystal Reports 13.
Eg:
- Record Number 1 should be '001'
- Record Number 20 should be '020'
I have noticed that there's a related post about customizing table fields by using ToText({table.field},"000")
. But this approach doesn't work when I use {recordnumber}
instead of {table.field}
.
{recordnumber}
just userecordnumber
. { } are just for fields, see my answer. Just tested here and it's working pretty fine. – jhenrique