Quantcast
Channel: Open XML Format SDK forum
Viewing all articles
Browse latest Browse all 1288

Number in this cell is formatted as text or preceded by apostrophe-Excel

$
0
0

Hi,

I had apply number format with decimal as below for cells, getting the error "Number in this cell is formatted as text or preceded by apostrophe"  and number does not have decimal point. When i see the format cells(right click on the cell) in excel by manually, style format applied correctly.Could you please some one advise on this.

Number format:

NumberingFormats numberingFormats1 = new NumberingFormats() { Count = (UInt32Value)2U };
            NumberingFormat numberingFormat1 = new NumberingFormat() { NumberFormatId = (UInt32Value)164U, FormatCode = "###,###,###,###,###,###,###,##0.00" };
            NumberingFormat numberingFormat2 = new NumberingFormat() { NumberFormatId = (UInt32Value)165U, FormatCode = "###,###,###,###,###,##0.0000000000" };

            numberingFormats1.Append(numberingFormat1);
            numberingFormats1.Append(numberingFormat2);



Viewing all articles
Browse latest Browse all 1288

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>