Quantcast
Channel: NPOI
Viewing all articles
Browse latest Browse all 1621

Created Unassigned: Numric data comes with a leading single quote when the value is set as a string. [12856]

$
0
0
VS2010, NPOI 2.0.6.0 [stable]

There are four overload methods for setting data in a cell.

void SetCellValue(bool value);
void SetCellValue(DateTime value);
void SetCellValue(double value);
void SetCellValue(IRichTextString value);
void SetCellValue(string value);


When We set SetCellValue(1); // Numeric value it coming exactly as 1

When We set SetCellValue("1"); // Numeric value but set as string it coming '1 //Error: Notice the leading single quote.

Any way to get rid of that ?
Thanks in Advance.

Viewing all articles
Browse latest Browse all 1621

Trending Articles



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