public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { DepositCrystalReport rpt = new DepositCrystalReport(); rpt.Site = this.Site; return(rpt); }
public DepositCrystalReportUI(string month) { InitializeComponent(); DepositManager aDepositManager = new DepositManager(); HelperClass helper = new HelperClass(); List <MemberWithDeposit> depositList = aDepositManager.GetMemberWithDepositList(month); DepositCrystalReport depositCrystalReport = new DepositCrystalReport(); depositCrystalReport.SetDataSource(depositList); //depositCrystalReport.SetParameterValue("Month", helper.CurrentMonthAsString()); //shopingCrystalReportViewer.ReportSource = shopingCrystalReport; depositCrystalReportViewer.ReportSource = depositCrystalReport; }