private DataTable LoadData() { DataSet catalogo = new DataSet(); bf_mi_indicadores BFindicadores = new bf_mi_indicadores(); DataSet ds = BFindicadores.mi_catalogografico(7, 0, 0, 0); return ds.Tables[0]; } protected void rpt_catalogo_Drillthrough(object sender, DrillthroughEventArgs e) { Response.Write(Js.alert("Entro")); LocalReport localReport = (LocalReport) e.Report; ReportDataSource datasource = new ReportDataSource("CMIDataSet_prueba_pa_mi_catalogo_grafico", LoadData()); localReport.DataSources.Clear(); localReport.DataSources.Add(datasource); localReport.Refresh(); } private void LoadReport(int id) { DataSet catalogo = new DataSet(); bf_mi_indicadores BFindicadores = new bf_mi_indicadores(); //int ids = NumInt.Init(id.Text); //DataSet ds = BFindicadores.mi_catalogografico(7, 0, 0, 0); DataSet ds = BFindicadores.mi_catalogo(id, 0, 0, 0); ReportDataSource datasource = new ReportDataSource("CMI_CATALOGO_pa_mi_catalogo_sel", ds.Tables[0]); rpt_catalogo.LocalReport.DataSources.Clear(); rpt_catalogo.LocalReport.DataSources.Add(datasource); if (ds.Tables[0].Rows.Count == 0) { Response.Write(Js.alert("Rows.Count == 0")); } //rpt_catalogo.Drillthrough += new DrillthroughEventHandler(DemoDrillthroughEventHandler); rpt_catalogo.LocalReport.Refresh(); } protected void Button1_Click(object sender, EventArgs e) { rpt_catalogo.Visible = true; int id_perspectiva = NumInt.Init(Request.QueryString["id_perspectiva"]); LoadReport(id_perspectiva); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)