Hi,
I'm writing an app, that amongst other things lets users export data to an Excel file.
When I create the file using my current locale "nl-NL" using this code:
xlApp = new Excel.ApplicationClass();
xlWorkBook = xlApp.Workbooks.Add(Excel.XlWBATemplate.xlWBATWorksheet);
I get this error:
"Old format or invalid type library. (Exception from HRESULT: 0x80028018
(TYPE_E_INVDATAREAD))"
Searching on internet revealed that changing the locale to en-us by this code fixes the problem.
CultureInfo cult = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = cult;
Can anyone enlighten me to how this could be related to locale?
cheers,
Csharper
Bookmarks