private void Mostrar() { ReportViewer1.Reset(); //Reseteamos el Reporte DataTable dsC = PreparaAcceso.BuscarDevoluciones(Convert.ToString(Session["FechaDev"]), Convert.ToInt32(Session["Sucursal"]), Convert.ToInt32(Session["Cliente"]), cadenaConexion); //.LLenarConsultaGuia(cadenaConexion); //Con este datatable capturaremos el dato retornado para nuestro parametro ReportDataSource datasource = new ReportDataSource("DataSet1", dsC); // nombre del dataset(que guardara los datos+datatable que trae el parametro ReportViewer1.LocalReport.DataSources.Add(datasource); //Le decimos que el reporte es de tipo local ReportViewer1.LocalReport.ReportPath = Server.MapPath("Reportes/ReportDevoluciones.rdlc"); //se mapea la direccion de nuestro reporte dentro del proyecto. //ReportParameter prm = new ReportParameter("Suc", Session["Codsuc"].ToString()); //ReportViewer1.LocalReport.SetParameters(new ReportParameter[] { prm }); ReportViewer1.LocalReport.Refresh();//para refrescar el reporte }