Ejemplo n.º 1
0
 private void bt_excel_Click(object sender, EventArgs e)
 {
     if (listDc.Count > 0)
     {
         Presentation.toolTip1.ExportToExcel exp = new toolTip1.ExportToExcel();
         exp.ExportToExcelFromDatagridview(tbl_DsDc, "ds_dochoi_" + DateTime.Now.ToString("dd-MM-yyyy"));
     }
     else
     {
         MessageBox.Show("Không có dữ liệu để xuất!!");
     }
 }
Ejemplo n.º 2
0
        private void bt_excel_Click(object sender, EventArgs e)
        {
            Presentation.toolTip1.ExportToExcel exp = new toolTip1.ExportToExcel();
            if (!(tbl_DsPhieuNhap.SelectedRows.Count > 0))
            {
                return;
            }
            string fname;

            fname = "phieu_nhap_kho_" + tbl_DsPhieuNhap.SelectedRows[0].Cells["MAPHIEU"].Value.ToString();

            exp.ExportToExcelFromDatagridview(tbl_CtPhieuNhap, fname);
        }
Ejemplo n.º 3
0
 private void bt_excel_Click(object sender, EventArgs e)
 {
     toolTip1.ExportToExcel export = new toolTip1.ExportToExcel();
     export.ExportToExcelFromDatagridview(tbl_DsBc, "BaoCaoDoanhSo");
 }
Ejemplo n.º 4
0
 //ok
 private void bt_In_Click(object sender, EventArgs e)
 {
     toolTip1.ExportToExcel excel = new toolTip1.ExportToExcel();
     excel.ExportToExcelFromDatagridview(tbl_NhanVien, "Danh Sách Nhân Viên");
 }
Ejemplo n.º 5
0
 private void bt_excel_Click(object sender, EventArgs e)
 {
     toolTip1.ExportToExcel excel = new toolTip1.ExportToExcel();
     excel.ExportToExcelFromDatagridview(tbl_nk, string.Format("PhieuKho_{0}_{1}", tb_MaPhieu.Text, DateTime.Now.Date));
     MessageBox.Show("Xuất excel thành công !");
 }