Ahi os lo pongo:
Excel.Application xlApp_1;
Excel.Workbook xlWorkBook_1;
Excel.Worksheet xlWorkSheet_1;
object misValue_1 = System.Reflection.Missing.Value;
xlApp_1 = new Excel.ApplicationClass();
xlWorkBook_1 = xlApp_1.Workbooks.Add(misValue_1);
xlWorkSheet_1 = (Excel.Worksheet)xlWorkBook_1.Worksheets.get_Item(1);
xlWorkSheet_1.Cells[1, 1] = "Fecha";
xlWorkSheet_1.Cells[1, 2] = "Hora";
xlWorkSheet_1.Cells[1, 3] = "Trama Recibida";
xlWorkSheet_1.Cells[1, 4] = "Temperatura";
xlWorkSheet_1.Cells[1, 5] = "Humedad";
xlWorkSheet_1.Cells[1, 6] = "Tª max";
xlWorkSheet_1.Cells[1, 7] = "Tª min";
xlWorkSheet_1.Cells[1, 8] = "Tª med";
xlWorkBook_1.SaveAs(@sexplorar_1 + "\" + "S" + @ssala + "_" + @saño_mes, Excel.XlFileFormat.xlWorkbookNormal, misValue_1, misValue_1, misValue_1, misValue_1, Excel.XlSaveAsAccessMode.xlExclusive, misValue_1, misValue_1, misValue_1, misValue_1, misValue_1);
xlWorkBook_1.Close(true, misValue_1, misValue_1);
xlApp_1.Quit();
releaseObject(xlWorkSheet_1);
releaseObject(xlWorkBook_1);
releaseObject(xlApp_1);
}
}