Error when read excel from Microsoft.Office.Interrop.Excel

0

i use Microsoft.Office.Interop.Excel to read Excel Here is my code:

System.Globalization.CultureInfo oldCI = System.Threading.Thread.CurrentThread.CurrentCulture;
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("ko-KR");
Excel.Application eApp = new Excel.Application()
Excel.WorkBook oBooks = eApp.Workbooks.Open(fileName)

When it run to Open file Name it show error Old format or invalid type library.

(Exception from HRESULT: 0x80028018 (TYPE_E_INVDATAREAD)).How I can fix it. It is a region in Korea and I cant change to en-US

c#
excel
excel-interop
asked on Stack Overflow Jul 9, 2018 by Thien Vu • edited Jul 9, 2018 by habib

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0