oXls de Excel.Application = nuevo Microsoft.Office.Interop.Excel.ApplicationClass ();
objeto oMissing = System.Reflection.Missing.Value;
oSpr de Excel.Workbook = oXls.Workbooks.Open (“ExcelData.xlsx”, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, el oMissing, oMissing);
fileFormat del objeto = Excel.XlFileFormat.xlXMLSpreadsheet;
oSpr.SaveAs (paramExportFilePath, fileFormat de la referencia, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, el oMissing, oMissing);
oSpr.Close ();
oXls.Quit ();
|