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

New Post: How to change the Numberformat to Text from C#

$
0
0
I dont know if this is what you're looking for, but you can set the Format of cells to Text like this:
//quick example
var cell = sheet.GetRow(3).GetCell(2);
cell.CellStyle.DataFormat = HSSFDataFormat.GetBuiltinFormat("@");
you can do the same thing at the Row level if you like.

Hope it helps

Viewing all articles
Browse latest Browse all 1621

Trending Articles



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