protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { RopaReportViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local; RopaReportViewer.Reset(); RopaReportViewer.LocalReport.ReportPath = Server.MapPath(@"../Reportes/RopaReporte.rdlc"); RopaReportViewer.LocalReport.DataSources.Clear(); RopaReportViewer.LocalReport.DataSources.Add(new ReportDataSource("Ropa", repositorio.GetList(c => true))); RopaReportViewer.LocalReport.Refresh(); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { Repositorio <Ropas> repositorio = new Repositorio <Ropas>(); RopaReportViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local; RopaReportViewer.Reset(); RopaReportViewer.LocalReport.ReportPath = Server.MapPath(@"../Reportes/RopaReporte.rdlc"); RopaReportViewer.LocalReport.DataSources.Clear(); RopaReportViewer.LocalReport.DataSources.Add(new ReportDataSource("Ropa", (List <Ropas>)Session["Ropas"])); RopaReportViewer.LocalReport.Refresh(); } }