I've tried many different methods, but I've had no luck. This is the code I'm using to add the value to the cell
I've also tried changing the cell datatype from number to text.
No matter what I do I always get the message. The data I'm using to create the document is all numeric values, so the entire sheet has flags.
ws.Cell(baseCell).Value = NumberValue;
ws.Cell(baseCell).Style.NumberFormat.SetNumberFormatId(37);
ws.Cell(baseCell).SetDataType(XLCellValues.Number);
I've tried it with several datatypes for "NumberValue" including double, decimal, and float.I've also tried changing the cell datatype from number to text.
No matter what I do I always get the message. The data I'm using to create the document is all numeric values, so the entire sheet has flags.