protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                BLL.RepositorioBase <Cuentas> repositorio = new BLL.RepositorioBase <Cuentas>();
                CuentasReportViewer.ProcessingMode = ProcessingMode.Local;
                CuentasReportViewer.Reset();

                CuentasReportViewer.LocalReport.ReportPath = Server.MapPath(@"~\Reports\ReportCuentas.rdlc");
                CuentasReportViewer.LocalReport.DataSources.Clear();
                CuentasReportViewer.LocalReport.DataSources.Add(new ReportDataSource("Cuentas", repositorio.GetList(x => true)));
                CuentasReportViewer.LocalReport.Refresh();
            }
        }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                CuentasReportViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local;
                CuentasReportViewer.Reset();

                CuentasReportViewer.LocalReport.ReportPath = Server.MapPath(@"~\UI\Reportes\ListadoDeCuentas.rdlc");

                CuentasReportViewer.LocalReport.DataSources.Clear();

                CuentasReportViewer.LocalReport.DataSources.Add(new ReportDataSource("CuentasDataSet", repositorio.GetList(x => true)));
                CuentasReportViewer.LocalReport.Refresh();
            }
        }