Hello,
I am using Aspose 8.2.2.0, and I have an error “Input string was not in a correct format” ,
I get this eception in two situations;
1- when I try to open a workbook:
Workbook workbook = new Workbook(FilePath);
Worksheet sheet = workbook.Worksheets[0];
after investigations, the “E-” is causing that problem, but , the same value in another workbook doesn’t causing the same problem !!! so Is there a special format to check or to avoid ??
bellow some examples of values :
Accepted values:
-2,51214798961441E-37
3,92523123377252E-39
not accepted values :
-5,46516808802406E-23
1,19335545904751E-22
3,92523123377252E-39
2-the second situation is when i copy a sheet to another :
Workbook _template = new Workbook(templateFilePath);
Worksheet _template_DecoSheet = _template.Worksheets[“Deco”];
Workbook _parentBook = new Workbook();
Worksheet _workSheetDeco = _parentBook.Worksheets[0];
_workSheetDeco.Copy(_template_DecoSheet); //Exception here
_workSheetDeco.Name = templateSheetDecomp1.Name;
So the question; how can I avoid this error; it’s very blocking for me, if the format of one cell is not correct, why to prevent to read all the sheet ?? could you help me please.
thanks in advance.
kcm