What is the correct "Currency Format" to display $123,456.78

I tried the format "$#,##0" but when opened in excel it shows as Custom format even though the value is displayed correct.

sheet[row, column++].NumberFormat = "$#,##0"

How do I fix the format to Currency in excel?

Thanks!


1 Reply

JB John Bowlin Bosco K Syncfusion Team February 21, 2011 05:56 AM UTC

Hi Ram,

Thank you very much for your interest in Syncfusion Products.

Using Essential XlsIO, the currency format is implemented in customized format as you mentioned. We can format the value to currency with the help of using number format
sheet.UsedRange.NumberFormat = "$#,##0.00";
which will format the value of 123456.78 as "$123456.78". But the cell format will be shown as custom format and it cannot be shown as currency format using XlsIO.

Please let us know if you need any clarifications.

Thanks,
Pauline Bosco.


Loader.
Up arrow icon