예제 #1
0
 public void LlenaReport()
 {
     ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "Popup", $"ShowReporte('');", true);
     CategoriaReportViewer.ProcessingMode = ProcessingMode.Local;
     CategoriaReportViewer.Reset();
     CategoriaReportViewer.LocalReport.ReportPath = Server.MapPath(@"\Reportes\ReportesCategoria.rdlc");
     CategoriaReportViewer.LocalReport.DataSources.Clear();
     CategoriaReportViewer.LocalReport.DataSources.Add(new ReportDataSource("Categoria", Metodo.INVCategoria()));
     CategoriaReportViewer.LocalReport.Refresh();
 }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                CategoriaReportViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local;
                CategoriaReportViewer.Reset();

                CategoriaReportViewer.LocalReport.ReportPath = Server.MapPath(@"~\Reportes\CategoriasReport.rdlc");

                CategoriaReportViewer.LocalReport.DataSources.Clear();

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