Tại sao Mình Add references Excel vao` project của m lại báo lỗi found nhỉ.
Máy mình có cài excel ròi mà. (2003) nha.
Nó báo 1 dấu Chấm than to đùng cạnh cái biểu tượng references Excel
mình có một vấn đề thế này: Khi mình xuất ra file execl, sử dụng hàm SaveAS thì bị báo lỗi: Exception from HRESULT: 0x800A03EC. Mong mọi người giúp đỡ
Tại sao Mình Add references Excel vao` project của m lại báo lỗi found nhỉ.
Máy mình có cài excel ròi mà. (2003) nha.
Nó báo 1 dấu Chấm than to đùng cạnh cái biểu tượng references Excel
Excel.Application xlApp ;
Excel.Workbook xlWorkBook ;
hai cai nay ok
Excel.Worksheet xlWorkSheet ;
con cai nay tim ko ra la sao vay may ban
Mấy bạn oi. mình lam theo may ban, ko bao loi nhung ko tim thay file excel o dau het
Mình chạy bài của bạn lúc nhấn button export thì nó báo lỗi này, mình đang xài office 2007. Lỗi này là do đâu vậy bạn."Old format or invalid type library. (Exception from HRESULT: 0x80028018 (TYPE_E_INVDATAREAD))"
Mình Đang sài excel 2007
Làm Sao Để Giải Quyết Vấn Đề Này
sao mình làm nó lại báo lỗi là the style or namespace does not in exits 'Microsoft ' ?
mọi giải thích m hộ với!
thạnks!
Bạn làm như sau:
Trước khi bắt đầu tạo Excel App, sử dụng code này:
Sau khi Quit App thì sử dụng dòng này:Code:System.Globalization.CultureInfo oldCI = System.Threading.Thread.CurrentThread.CurrentCulture; System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
Code:System.Threading.Thread.CurrentThread.CurrentCulture = oldCI;