... từng table ra và có thể nhập liệu Sau đó muốn xuất ra file excel thì code như sauMã PHP:using System; using System.Windows.Forms; using System.Data; using System.Data.SqlClient; using Excel ... data = ds.Tables[0].Rows[i].ItemArray[j].ToString(); xlWorkSheet.Cells[i + 1, j + 1] = data; } } xlWorkBook.SaveAs("sieuthiIT.xls", Excel. XlFileFormat.xlWorkbookNormal, misValue, ... releaseObject(xlWorkBook); releaseObject(xlApp); MessageBox.Show(" ;Excel file created , you can find the file c:\\sieuthiIT.com.xls"); } private void releaseObject(object obj)...