public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { CryOrdenPendiente rpt = new CryOrdenPendiente(); rpt.Site = this.Site; return(rpt); }
//Metodo carga el reporte y le agrega los datos //al mismo private void cargar() { try { CryOrdenPendiente cry = new CryOrdenPendiente(); cry.SetDataSource(BllOrden.cargarInformeOrdenPendiente(dtDia.Value)); this.reporteInforme.ReportSource = cry; } catch (Exception ex) { MessageBox.Show(ex.Message, "Error de transación", MessageBoxButtons.OK, MessageBoxIcon.Information); } }