I have a datable that I am iterating through and want to format the cell data depending on their data type.
I can do strings using this subroutine
private static Cell CreateTextCell(string text)
{
var cell = new Cell { DataType = CellValues.InlineString };
var istring = new InlineString();
var txt = new Text { Text = text };
istring.Append(txt);
cell.Append(istring);
return cell;
}
What I want to do is the same thing for other data types, such as Double, DateTime etc.
I seem to have a problem with the construction. This is what I have attempted
private static Cell CreateNumberCell(double value)
{
var cell = new ...
Go to the complete details ...