Click here to Skip to main content
15,893,381 members
Please Sign up or sign in to vote.
1.33/5 (3 votes)
See more:
Has not provided any data source instance to the data source CMI_CATALOGO_pa_mi_catalogo_sel
C#
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);
      }
Posted
Updated 30-Sep-10 2:02am
v2
Comments
thatraja 30-Sep-10 4:58am    
Incomplete question...need more details
Sunasara Imdadhusen 30-Sep-10 5:00am    
Please use pre tag to display code proper indentation with style
Sandeep Mewara 30-Sep-10 8:03am    
What next? Is your question complete?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900