private void btnImport_Click(object sender, EventArgs e)
 {
     ExportExcel ee = new ExportExcel();
     if (!string.IsNullOrEmpty(txtFile.Text))
     {
        dsStudent = ee.ExcelToDS(txtFile.Text);
        StudentBind();
     }
 }
Example #2
0
 private void btnExport_Click(object sender, EventArgs e)
 {
     if (Marks != null)
     {
         ExportExcel ee = new ExportExcel();
         ee.ExportToExcel(cmbClass.ClassID+"��������ʳɼ�", DateTime.Now.ToShortDateString(), GridViewMark);
     }
     else
     {
         MessageBox.Show("û�����ݣ����ܵ���");
         return;
     }
 }