コード例 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptticket rpt = new rptticket();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
 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;
 }
コード例 #3
0
        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);
        }
コード例 #4
0
 public frmrptticket(rptticket reporte) : base(new DataTable())
 {
     InitializeComponent();
     this.reporte     = reporte;
     this.FormClosed += (sender, args) => { this.reporte.Close(); this.reporte.Dispose(); };
 }