Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

Closed Unassigned: Error when openning of file [9420]

$
0
0
Hello.

I have a trouble with openning one specific excel file (in attachment)

When I try to open it:
```
XLWorkbook workbook = new XLWorkbook(path);
```

I have an error:
```
Exception:Thrown: "Value was either too large or too small for an Int32." (System.OverflowException)
A System.OverflowException was thrown: "Value was either too large or too small for an Int32."
```

In stack trace last metod was "LoadPageSetup"
```
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at ClosedXML.Excel.XLWorkbook.LoadPageSetup(PageSetup pageSetup, XLWorksheet ws)
at ClosedXML.Excel.XLWorkbook.LoadSpreadsheetDocument(SpreadsheetDocument dSpreadsheet)
at ClosedXML.Excel.XLWorkbook.LoadSheets(String fileName)
at ClosedXML.Excel.XLWorkbook.Load(String file)
at ClosedXML.Excel.XLWorkbook..ctor(String file, XLEventTracking eventTracking)
at ClosedXML.Excel.XLWorkbook..ctor(String file)
```


Comments: Reporter states issue is fixed.

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>