public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { Reporte_CorteCaja rpt = new Reporte_CorteCaja(); rpt.Site = this.Site; return(rpt); }
private void btnImprimir_Click(object sender, EventArgs e) { this.reporte = new Reporte_CorteCaja(); this.reporte.Database.Tables["ventaservicio"].SetDataSource(this.dtVentas.Tables[0]); this.reporte.Database.Tables["Status"].SetDataSource(this.Status); this.reporte.Database.Tables["Etc"].SetDataSource(this.Etc); this.reporte.PrintToPrinter(1, false, 0, 0); }