المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : export DataGridView to excel 2007 in c#



C# Programming
01-20-2010, 03:41 AM
hi

Microsoft.Office.Interop.Excel.ApplicationClass ExcelApp = new Microsoft.Office.Interop.Excel.ApplicationClass();

// in this line of code:

ExcelApp.Application.Workbooks.Add(Type.Missing);

error:

Old format or invalid type library. (Exception from HRESULT: 0x80028018 (TYPE_E_INVDATAREAD))

can any one help me ?

H.R