Esempio n. 1
0
        private void ReporteIniciativa()
        {
            string          rutatarget = ConfigurationManager.AppSettings["RutaReportes"].ToString();
            IniciativaRptBE entidad    = new IniciativaRptBE()
            {
                ID_INICIATIVA = 0
            };

            ConfigurarReporte();
            rvReporte.LocalReport.ReportPath = string.Format("{0}\\rptIniciativa.rdlc", rutatarget);
            List <IniciativaRptBE> lbeReporte = ReporteLN.ListaIniciativaRpt(entidad);

            ReportDataSource dataSource = new ReportDataSource("DtIniciativa", lbeReporte);

            rvReporte.LocalReport.DataSources.Clear();
            rvReporte.LocalReport.DataSources.Add(dataSource);
            rvReporte.ServerReport.Refresh();
        }
Esempio n. 2
0
        private void ReporteIniciativa()
        {
            string          rutatarget = ConfigurationManager.AppSettings["RutaReportes"].ToString();
            IniciativaRptBE entidad    = new IniciativaRptBE()
            {
                ID_INICIATIVA = 0, ID_MEDMIT = int.Parse(ddlMedMit.SelectedValue), ID_SECTOR_INSTITUCION = int.Parse(ddlSector.SelectedValue)
            };

            ConfigurarReporte();
            ReportViewer1.LocalReport.ReportPath = string.Format("{0}\\rptIniciativa.rdlc", rutatarget);
            List <IniciativaRptBE> lbeReporte = ReporteLN.ListaIniciativaRpt(entidad);

            ReportDataSource dataSource = new ReportDataSource("DtIniciativa", lbeReporte);

            ReportViewer1.LocalReport.DataSources.Clear();
            ReportViewer1.LocalReport.DataSources.Add(dataSource);
            ReportViewer1.ServerReport.Refresh();
        }