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

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
        public FrmSubReporte()
        {
            InitializeComponent();

            var _clientesBL   = new ClientesBL();
            var bindingSource = new BindingSource();

            bindingSource.DataSource = _clientesBL.ObtenerClientes();

            var reporte = new SubReporte();

            reporte.SetDataSource(bindingSource);

            crystalReportViewer1.ReportSource = reporte;
            crystalReportViewer1.RefreshReport();
        }