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

مشاهدة النسخة كاملة : Error in save file ...



C# Programming
12-02-2009, 04:16 AM
Hi All !
I imported an excel file in a datagridview and then Filter it by ... , then I save as it in any my computer , when want to the save in another computer , I Recieve this Error :
Old Format or Invalid Type library(Exception from HRESULT:0x80028018...
Here in my code :
...
Microsoft.Office.Interop.Excel.Application ExcelApp = new Microsoft.Office.Interop.Excel.Application();
ExcelApp.Application.Workbooks.Add(Type.Missing);
Microsoft.Office.Interop.Excel.Workbook excelBook = ExcelApp.Workbooks.Add(XlSheetType.xlWorksheet);
Microsoft.Office.Interop.Excel.Worksheet excelWorksheet = (Worksheet)(excelBook.Worksheets[1]);
excelWorksheet.DisplayRightToLeft = true;
...
Thank u for any help

s_mostafa_h