public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { ReporteGlobal rpt = new ReporteGlobal(); rpt.Site = this.Site; return(rpt); }
private void crystalReportViewer1_Load(object sender, EventArgs e) { ReporteGlobal reporte = new ReporteGlobal(); reporte.SetParameterValue("@YEAR", this.anio); reporte.SetParameterValue("@ID_USUARIO", this.idUsuario); this.crystalReportViewer1.RefreshReport(); crystalReportViewer1.ReportSource = reporte; }