Excel.Application oXls = nowy Microsoft.Office.Interop.Excel.ApplicationClass ();
przedmiot oMissing = System.Reflection.Missing.Value;
Excel.Workbook oSpr = oXls.Workbooks.Open ("ExcelData.xlsx", oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing);
przedmiot fileFormat = Excel.XlFileFormat.xlXMLSpreadsheet;
oSpr.SaveAs (paramExportFilePath, ref fileFormat, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing);
oSpr.Close ();
oXls.Quit ();
|