Beispiel #1
0
        private void showExcel()
        {
            AccessData d       = new AccessData();
            string     tungay  = haison1.tungay;
            string     denngay = haison1.denngay;
            CThanhToanBHYTOracleNoiTru data = new CThanhToanBHYTOracleNoiTru();
            DataSet        ds         = data.f_loadBCMau20_XuatExcel2(tungay, denngay, stypereport, false, treeView_HAISON1.get_Ma.Trim(','), "", (ckGoiKTC.Checked == false ? "1" : "5"));
            string         reportname = "xuat_excel.rpt";
            frmReportExcel a          = new frmReportExcel(d, ds.Tables[0], reportname, "TỪ NGÀY " + haison1.tungay + " ĐẾN NGÀY " + haison1.denngay, "", "", "", "", "", "", "", "", "");

            a.Show();
        }
Beispiel #2
0
        private void btXuatExcel_Click(object sender, EventArgs e)
        {
            AccessData d = new AccessData();

            string tungay  = haison1.tungay;
            string denngay = haison1.denngay;
            CThanhToanBHYTOracleNoiTru data = new CThanhToanBHYTOracleNoiTru();
            DataSet        ds         = data.f_loadBCMau20_XuatExcel(tungay, denngay, stypereport, false, treeView_HAISON1.get_Ma.Trim(','), "");
            string         reportname = "xuat_excel.rpt";
            frmReportExcel a          = new frmReportExcel(d, ds.Tables[0], reportname, "TỪ NGÀY " + haison1.tungay + " ĐẾN NGÀY " + haison1.denngay, "", "", "", "", "", "", "", "", "");

            a.Show();
        }