I'm trying to create a web report on a .aspx page, the report template is a .rdlc file. When I run the application, I fill out a bar graph with the same Datasource that I use for the report, however my report remains cycled in loading, calling the application again as if it were updating the page:
the code with which I fill out the report is as follows:
DataTable datos = new DataTable();
string cs = ConfigurationManager.ConnectionStrings["OCEntities"].ConnectionString;
using (SqlConnection con = new SqlConnection(cs))
{
SqlCommand comm = new SqlCommand("select * from Vista_ReporteCompras ", con);
SqlDataAdapter da = new SqlDataAdapter(comm);
da.Fill(datos);
}
visor.ProcessingMode = ProcessingMode.Local;
visor.LocalReport.ReportPath = Server.MapPath("Plantilla.rdlc");
ReportDataSource datasource = new ReportDataSource("Datos", datos);
visor.LocalReport.DataSources.Clear();
visor.LocalReport.DataSources.Add(datasource);
cargar = false;
Do you have an idea how to solve it?