public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { Report_Payroll_FinalPaymentStatement rpt = new Report_Payroll_FinalPaymentStatement(); rpt.Site = this.Site; return(rpt); }
public override ReportDocument GenerateReport() { if (EmpList != null) { GenerateDetailByEmpID(); if (reportDocument == null) { reportDocument = new ReportTemplate.Report_Payroll_FinalPaymentStatement(); } else { } reportDocument.SetDataSource(dataSet); foreach (ReportDocument o in reportDocument.Subreports) { o.SetDataSource(dataSet); } reportDocument.SetParameterValue("PreparedBy", PreparedBy); reportDocument.SetParameterValue("ReviewedBy", ReviewedBy); //if (IsShowLeaveBalance) // reportDocument.Subreports["Report_Payroll_PaySlip_SubLeaveBalance"].SetDataSource(dataSet); return(reportDocument); } else { return(null); } }