public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { reporteGlobal rpt = new reporteGlobal(); rpt.Site = this.Site; return(rpt); }
private void btnInforme_Click(object sender, EventArgs e) { reporteGlobal rptGlobalCR = new reporteGlobal(); rptGlobalCR.SetDataSource(clsEstadisticas.getVentasPInforme(dtpDesde.Value, dtpHasta.Value)); rptGlobalCR.SetParameterValue("Desde", dtpDesde.Value); rptGlobalCR.SetParameterValue("Hasta", dtpHasta.Value); frmTicketVenta frmTicket = new frmTicketVenta(rptGlobalCR); frmTicket.ShowDialog(); }