public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { rptticket rpt = new rptticket(); rpt.Site = this.Site; return(rpt); }
public frmrptticket(rptticket reporte, ParameterFields listparams) : base(new DataTable()) { InitializeComponent(); this.reporte = reporte; this.FormClosed += (sender, args) => { this.reporte.Close(); this.reporte.Dispose(); }; this.crv.ParameterFieldInfo = listparams; this.crv.ReuseParameterValuesOnRefresh = false; }
public printTicket(venta xventa, tienda xtienda) { this.xtienda = xtienda; this.xventa = xventa; this.db = new dbop(); this.reporte = new rptticket(); this.translate = new convierte(); this.codbar = new cb(); this.xcliente = this.db.getclientAsobject(this.xventa.idcliente); this.pathcbar = Path.Combine(genericDefinitions.TICKETLOGOSPATH + @"\logocbar.png"); this.pathlogo = Path.Combine(genericDefinitions.TICKETLOGOSPATH + @"\logotienda.png"); this.widthcbar = (int)(widthcbar * 50 / 2.54); this.heightcbar = (int)(heightcbar * 50 / 2.54); }
public frmrptticket(rptticket reporte) : base(new DataTable()) { InitializeComponent(); this.reporte = reporte; this.FormClosed += (sender, args) => { this.reporte.Close(); this.reporte.Dispose(); }; }