I have been using radspreadsheet for reading .csv files for some time now. I am now working on an application that requires me to read .xslx files. The only issue I have is the following: When reading percentage values, if the values are too small, I get a zero returned for the cell value. For example, if my spreadsheet is:
0.10%
1.00%
10.00%
100.00%
when reading the values, where the cell format is "percentage", I get the following values:
0
0.01
0.1
1
On the spreadsheet, I have the number of decimal points set to 6.
private string GetCellValue(Worksheet ws, int RowIndex, int ColumnIndex)
{
CellSelection cell;
ICellValue value;
string cellvalue = "0";
cell = ws.Cells[RowIndex, ColumnIndex];
value = cell.GetValue().Value;
if (value != null) cellvalue = value.RawValue.ToString();
0.10%
1.00%
10.00%
100.00%
when reading the values, where the cell format is "percentage", I get the following values:
0
0.01
0.1
1
On the spreadsheet, I have the number of decimal points set to 6.
private string GetCellValue(Worksheet ws, int RowIndex, int ColumnIndex)
{
CellSelection cell;
ICellValue value;
string cellvalue = "0";
cell = ws.Cells[RowIndex, ColumnIndex];
value = cell.GetValue().Value;
if (value != null) cellvalue = value.RawValue.ToString();