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

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            Viewfrm        vf  = new Viewfrm();
            CrystalReport2 rpt = new CrystalReport2();

            vf.crystalReportViewer1.ReportSource = rpt;
            vf.Show();
        }