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

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
 public frmRptProductos(DataTable _Productos)
 {
     InitializeComponent();
     Reportes.rptProductos reporte = new Reportes.rptProductos();
     reporte.SetDataSource(_Productos);
     this.crystalReportViewer1.ReportSource = reporte;
     this.crystalReportViewer1.RefreshReport();
 }