Displaying Numeric value i.e. 3 as 003

Stimulsoft Reports.NET discussion
Post Reply
ssdev23
Posts: 10
Joined: Fri Jun 13, 2008 2:18 am

Displaying Numeric value i.e. 3 as 003

Post by ssdev23 »

Hey everyone, i need help about this please..
So how can I display numeric value 3 as 003 or 10 as 010?

It's an Int value, how do i set it up?
Add something on BeforePrintEvent? Format data display? How?

Thanks in advance!

Merci,
Cc
mace242
Posts: 43
Joined: Tue Aug 21, 2007 9:24 am

Displaying Numeric value i.e. 3 as 003

Post by mace242 »

You could use something like:

{int.Parse("10").ToString("000")}

in the text property.

This will show as 010.
ssdev23
Posts: 10
Joined: Fri Jun 13, 2008 2:18 am

Displaying Numeric value i.e. 3 as 003

Post by ssdev23 »

Thanks mace242 it worked well!
Post Reply