oXls di Excel.Application = nuovo Microsoft.Office.Interop.Excel.ApplicationClass ();
oggetto che oMissing = System.Reflection.Missing.Value;
oSpr di Excel.Workbook = oXls.Workbooks.Open (“ExcelData.xlsx„, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing);
fileFormat dell'oggetto = Excel.XlFileFormat.xlXMLSpreadsheet;
oSpr.SaveAs (paramExportFilePath, fileFormat di riferimento, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing);
oSpr.Close ();
oXls.Quit ();
|