Exemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            ReporteCentro rpt = new ReporteCentro();

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
        private void GenerarReporte()
        {
            List <CentroDataSourceShow> centro = new List <CentroDataSourceShow>();

            centro = this.negocioCentro.CargarInforme();
            List <CentroDataSourceReporte> centroR = new List <CentroDataSourceReporte>();

            this.Size = new Size(840, 566);
            foreach (CentroDataSourceShow item in centro)
            {
                CentroDataSourceReporte centrR = new CentroDataSourceReporte();
                centrR.Codigo       = item.Codcentro ?? default(int);
                centrR.NombreCentro = item.Nombrecentro;
                centroR.Add(centrR);
            }

            ReporteCentro reportcentro = new ReporteCentro();

            reportcentro.SetDataSource(centroR);
            crystal_reportcentro.ReportSource = reportcentro;
        }