Example #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            Sales_PrintReport rpt = new Sales_PrintReport();

            rpt.Site = this.Site;
            return(rpt);
        }
Example #2
0
        private void Sales_Report_Load(object sender, EventArgs e)
        {
            Sales_PrintReport ob = new Sales_PrintReport();

            ob.SetParameterValue("fromdate", Sales_Report_Choose_Date.from);
            ob.SetParameterValue("todate", Sales_Report_Choose_Date.to);
            crystalReportViewer1.ReportSource = ob;
            crystalReportViewer1.Refresh();
        }