public void LlenaReport() { ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "Popup", $"ShowReporte('');", true); ArticuloReportViewer.ProcessingMode = ProcessingMode.Local; ArticuloReportViewer.Reset(); ArticuloReportViewer.LocalReport.ReportPath = Server.MapPath(@"\Reportes\ReportesArticulo.rdlc"); ArticuloReportViewer.LocalReport.DataSources.Clear(); ArticuloReportViewer.LocalReport.DataSources.Add(new ReportDataSource("Articulo", Metodo.INVarticulo())); ArticuloReportViewer.LocalReport.Refresh(); }
public void LLenaReportes() { Expression <Func <Articulos, bool> > filtrar = m => true; ArticuloReportViewer.ProcessingMode = ProcessingMode.Local; ArticuloReportViewer.Reset(); ArticuloReportViewer.LocalReport.ReportPath = Server.MapPath(@"~\Reportes\ListadoArticulo.rdlc"); ArticuloReportViewer.LocalReport.DataSources.Clear(); ArticuloReportViewer.LocalReport.DataSources.Add(new ReportDataSource("ArticuloR", ListArti(filtrar))); ArticuloReportViewer.LocalReport.Refresh(); }