Format number in reportviewer?

1

I'm trying to format a number in ReportViewer and I'm not getting it, so I'm trying to use the Format function of TextBox in ReportViewer . The number is a code and I'm trying to fill it with 3 leading zeros. I'm trying like this: =FormatNumber(Fields!terminal.Value.codigo, String.Format("{N:000}")) , but it's not working. How to do this?

    
asked by anonymous 24.09.2016 / 20:48

1 answer

1

The correct one would be:

Format(Fields!terminal.Value.codigo, "0000");

References:

25.09.2016 / 00:19