コード例 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CRp_LoaiSanPham rpt = new CRp_LoaiSanPham();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
        private void btn_XuatEx_Click(object sender, EventArgs e)
        {
            string          query = "SELECT * From LoaiSanPham  ";
            CRp_LoaiSanPham sp    = new CRp_LoaiSanPham();

            sp.SetDataSource(Dataset.DaTa.report(query));
            fRPTsp f = new fRPTsp();

            f.crystalReportViewer1.ReportSource = sp;
            f.ShowDialog();
        }