예제 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            crCommodity rpt = new crCommodity();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void frmCommodity_Load(object sender, EventArgs e)
        {
            crCommodity commodity = new crCommodity();

            commodity.SetParameterValue("Date", DateTime.Now);
            crystalReportViewer.ReportSource = commodity;
        }