Posted on: 10/8/2012 12:52:06 AM | Views : 240

there is my code
string workbookPath2 = "E:/Users/entete_temp.xls"; Excel.Application excelApp = new Excel.Application(); excelApp.Visible = false; Excel.Workbook excelWorkbook = excelApp.Workbooks.Open(workbookPath2, 0, false, 5, "", "", false, Excel.XlPlatform.xlWindows, "", true, false, 0, true, false, false); //writing data into excel file //******************************************************** Excel.Worksheet xlWorkSheet; xlWorkSheet = (Excel.Worksheet)excelWorkbook.Worksheets.get_Item(1); xlWorkSheet.Cells[1, 5] = nom; int ligne = 3; while (reader.Read()) { xlWorkSheet.Cells[ligne, 1] = Convert.ToDateTime(reader["date_el"]).ToString("dd/MM/yyyy"); xlWorkSheet.Cells ...

Go to the complete details ...