Quantcast
Channel: npoi Discussions Rss Feed
Viewing all articles
Browse latest Browse all 637

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 637

Trending Articles