Numeric format display without separators

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

Numeric format display without separators

Post by ssdev23 »

Hi All,
Need your thoughts about this please..
On a data band footer BeforePrintEvent I've used this:

varAmt = Format("{0:N3}", varSumOfAmt)

to assign the value of Amt in String where decimal places is being formatted (as 2 or 3 ,4 and so on), but this returns a string value with the separators "." and ","

is there a way to lose it off? (programmatically)

Many thanks!
ssdev23
Posts: 10
Joined: Fri Jun 13, 2008 2:18 am

Numeric format display without separators

Post by ssdev23 »

And oh sorry i didn't mean to lose the decimal point "."
just the "," separator ie. in 123,456.00 it should be 123456.00

and note that i need the this Format("{0:N3}", varSumAmt) code to format the decimal place value.

Many thanks!
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Numeric format display without separators

Post by Edward »

Hello.

Please add the following method in the end of that expression:

.Replace(",", "")

Thank you.
ssdev23
Posts: 10
Joined: Fri Jun 13, 2008 2:18 am

Numeric format display without separators

Post by ssdev23 »

Yeah, the Replace method in C# will really work.

Thanks Edward!!!
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Numeric format display without separators

Post by Edward »

You are welcome.

Please let us know if any help is required.

Thank you.
Post Reply