public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { crtInvoiceRegister rpt = new crtInvoiceRegister(); rpt.Site = this.Site; return(rpt); }
private ReportDocument getReportDocument(Dictionary <String, Object> param, String printouttype) { ReportDocument rviewer = new ReportDocument(); rviewer = new crtInvoiceRegister(); rviewer.SetDataSource(printableData["main"]); rviewer.Subreports["crtSummaryBillSupport.rpt"].SetDataSource(printableData["zone"]); rviewer.SetParameterValue("HeaderName", HeaderName); rviewer.SetParameterValue("branch", Utils.branchcode); rviewer.SetParameterValue("monthly", param["monthly"]); rviewer.SetParameterValue("clientname", param["clientname"]); rviewer.SetParameterValue("delstat", param["delstat"]); rviewer.SetParameterValue("totalinvoice", sbs_total["totalinvoice"]); rviewer.SetParameterValue("batchcode", sbs_total["batchcode"]); rviewer.SetParameterValue("billedamt", sbs_total["billedamt"], "crtSummaryBillSupport.rpt"); rviewer.SetParameterValue("monthcycle", param["monthly"] + " CYCLE", "crtSummaryBillSupport.rpt"); return(rviewer); }