private void LoadBankReport(DataTable dtBranch) { try { NUBEMemberReport.Reset(); ReportDataSource Data = new ReportDataSource("ViewMasterMember", dtBranch); NUBEMemberReport.LocalReport.DataSources.Add(Data); NUBEMemberReport.LocalReport.ReportEmbeddedResource = "Nube.Reports.NUBEBranchMemberReport.rdlc"; ReportParameter RP1 = new ReportParameter(); if (!string.IsNullOrEmpty(cmbNubeBranch.Text)) { RP1 = new ReportParameter("Title", "NUBE " + cmbNubeBranch.Text + " BRANCH MEMBER REPORT"); } else { RP1 = new ReportParameter("Title", "NUBE BRANCH MEMBER REPORT"); } NUBEMemberReport.LocalReport.SetParameters(RP1); NUBEMemberReport.RefreshReport(); } catch (Exception ex) { Nube.ExceptionLogging.SendErrorToText(ex); } }
private void LoadBankReport() { try { NUBEMemberReport.Reset(); DataTable dt1 = getNUBEData(); ReportDataSource Data = new ReportDataSource("ViewMasterMember", dt1); NUBEMemberReport.LocalReport.DataSources.Add(Data); NUBEMemberReport.LocalReport.ReportEmbeddedResource = "Nube.Reports.NubeResignedReport.rdlc"; ReportParameter RP1 = new ReportParameter("Title", "NUBE BRANCH MEMBER REPORT"); NUBEMemberReport.LocalReport.SetParameters(RP1); NUBEMemberReport.RefreshReport(); } catch (Exception ex) { Nube.ExceptionLogging.SendErrorToText(ex); } }