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

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
        private void Report_NhaSanXuat_Load(object sender, EventArgs e)
        {
            nhasanxuatTableAdapter1.Fill(dataSet11.NHASANXUAT);
            CrystalReport3 rp = new CrystalReport3();

            rp.Database.Tables[0].SetDataSource(dataSet11);
            crystalReportViewer1.ReportSource = rp;
        }