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

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
        private void GetReport()
        {
            if (Request.QueryString["Date"] != null)
            {
                RDateRpt objRpt = new RDateRpt();
                crystalReport = objRpt;
                a.ExcecuteQuery("select Bill_no,Return_date,sum(0+P_sold) as price,Sum(0+P_tot) as total,Sum(0+P_tot)-sum(0+P_sold) as tax from SalesRTable where Return_date='" + Convert.ToDateTime(Request.QueryString["Date"]).Date.ToString("yyyy-MM-dd") + "' group by Bill_no,Return_date ");
                crystalReport.SetDataSource(a.DT);
                crystalReport.SetParameterValue("date", Request.QueryString["Date"].ToString());

                CrystalReportViewer1.ReportSource = crystalReport;
            }
        }