Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InventarioReportViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local;
                InventarioReportViewer.Reset();

                InventarioReportViewer.LocalReport.ReportPath = Server.MapPath(@"../Reportes/InventarioReporte.rdlc");

                InventarioReportViewer.LocalReport.DataSources.Clear();

                InventarioReportViewer.LocalReport.DataSources.Add(new ReportDataSource("Inventario", repositorio.GetList(c => true)));
                InventarioReportViewer.LocalReport.Refresh();
            }
        }
Beispiel #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                Repositorio <Inventarios> repositorio = new Repositorio <Inventarios>();

                InventarioReportViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local;
                InventarioReportViewer.Reset();

                InventarioReportViewer.LocalReport.ReportPath = Server.MapPath(@"../Reportes/InventarioReporte.rdlc");
                InventarioReportViewer.LocalReport.DataSources.Clear();
                InventarioReportViewer.LocalReport.DataSources.Add(new ReportDataSource("Inventario", (List <Inventarios>)Session["Inventarios"]));

                InventarioReportViewer.LocalReport.Refresh();
            }
        }