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

Created Unassigned: CopyCellTo method make the formated cell not preserve value [12979]

$
0
0
When I use the CopyCellTo method to copy a cell with format ("#,##0_);[Red](#,##0)") and the value is 1.52356. The method working well but when I double clicked on this cell and do nothing, then I move to new cell with no action, the cell value is automatically rounded to 2, the 1.52356 is gone.
I will have the same issue on the whole workbook and cannot preserved the old value, it's auto rounded.
More over, If I generate a cell as normal way (row.CreateCell()...) this issue is not occur.
Please help me out !!!

P/S: I've attached the result file, double click at cell A1 and then move to new cell to see the issue.

Viewing all articles
Browse latest Browse all 1621

Trending Articles



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