public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { MemberListing rpt = new MemberListing(); rpt.Site = this.Site; return(rpt); }
private void frmMemberListingReport_Load(object sender, EventArgs e) { DataSet1 ds = new DataSet1(); DataSet1TableAdapters.MembersTableAdapter da = new DataSet1TableAdapters.MembersTableAdapter(); da.Fill(ds.Members); if (ucReports.isDateRange) { MemberListing cr = new MemberListing(); cr.SetDataSource(ds); cr.SetParameterValue("Param_ExpDateTo", ucReports.daterangeML); crMLReport.ReportSource = cr; } else { MemberListingbyStatus cr = new MemberListingbyStatus(); cr.SetDataSource(ds); cr.SetParameterValue("Param_Status", ucReports.paramstatus); crMLReport.ReportSource = cr; } }