Opening Excel file with regional / date settings dd/mm/yyyy failed (English (Austria))
Changing date format to dd.mm.yyyy (German (Austria) is successfull
Issue Description
I'm trying to create a XSSFWorkbook object for an Excel .xlsx file like this
using (fs = File.OpenRead(filePath)) { workbook = new XSSFWorkbook(fs);
in the line new XSSFWorkbook(fs) (File exists and filestream is open) the code crashes with the error
System.ArgumentException: '1 ist keine unterstützte Codepage.
Parametername: codepage'
When i change the systems date settings to German (Austria) dd.mm.yyyy style the object can be created.
How can i set up the initialisation, that this works with any language / date setting?
NPOI Version
NPOI.2.3.0
File Type
Upload the Excel File
Should not be file related SE_Properties_Template.xlsx
Reproduce Steps
Opening Excel file with regional / date settings dd/mm/yyyy failed (English (Austria)) Changing date format to dd.mm.yyyy (German (Austria) is successfull
Issue Description
I'm trying to create a XSSFWorkbook object for an Excel .xlsx file like this
using (fs = File.OpenRead(filePath)) { workbook = new XSSFWorkbook(fs);
in the line new XSSFWorkbook(fs) (File exists and filestream is open) the code crashes with the error System.ArgumentException: '1 ist keine unterstützte Codepage. Parametername: codepage'When i change the systems date settings to German (Austria) dd.mm.yyyy style the object can be created.
How can i set up the initialisation, that this works with any language / date setting?