Exemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rp_ChiTietSLGT_NhapXuat rpt = new rp_ChiTietSLGT_NhapXuat();

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
        private void btnBaoCao_Click(object sender, EventArgs e)
        {
            DataTable dt      = new DataTable();
            String    strLenh = "EXEC SP_RP_In_SLTG_Nhap_Xuat '" + Program.mGroup + "','"
                                + convertStringToDateTime(dateNgayBatDau.Text.Trim()).ToString("yyyy-MM-dd") + "','"
                                + convertStringToDateTime(dateNgayKetThuc.Text.Trim()).ToString("yyyy-MM-dd") + "'";

            MessageBox.Show(strLenh);
            dt = Program.ExecSqlQuery(strLenh);
            rp_ChiTietSLGT_NhapXuat rp = new rp_ChiTietSLGT_NhapXuat();

            rp.SetDataSource(dt);
            crystalReportViewer1.ReportSource = rp;
        }