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

            rpt.Site = this.Site;
            return(rpt);
        }
Ejemplo n.º 2
0
        private void crystalReportViewer1_Load(object sender, EventArgs e)
        {
            CrystalReport5 cr = new CrystalReport5();

            cr.SetDataSource(table);
            cr.SetParameterValue("DateYearAndMonth", this.years + "年" + this.months + "月—薪資月報表");

            this.crystalReportViewer1.ReportSource = cr;
        }