Exemple #1
0
        private static void L_LabelPrintReceived(object sender, OESListener.LabelPrintEventArgs e)
        {
            e.PrintCode = @"^XA^JZN^POI^PQ1^BY3,3,100,^LH070,030^FS
^FO0065,040^B3N,N,160,N,N^FD*_SerialNumber_*^FS
^FO065,210,^A0N,30,30^FDP/N : B0656800-01        USA ARC: _SerialNumber_^FS
^FO065,380,^A0N,27,27^FDDOT-SP 12122/5300 M4636 UN3268: EX2000060075^FS
^FO065,410,^A0N,27,27^FDEINFUHRER:^FS
^FO126,440,^A0N,27,27^FDTEL.^FS
^FO520,530,^A0N,27,27^FDBAM PT -1073^FS
^FO605,542,^A0N,27,27^FD1^FS
^FO520,570,^A0N,27,27^FDBA01772^FS
~DGR:0AF4A8C3,00064,004,0FFF80,1FFF80,3FFF80,2318,4318,0318,
0318,0318,0718,0618,0618,0E1880,0E1D80,1E1F80,1C0F,
1C0E,^FO155,285^XG0AF4A8C3,1,1^FS
^FO065,570,^A0N,27,27^FDHERSTELLUNG: _Year_. KNOXVILLE^FS
^FO100,250,^A0N,30,30^FD1.8mm .196KG 0.044L PW332.8 PH499.2BAR^FS
^FO180,280,^A0N,30,30^FD 0531 -40C A  JS _Year_ / _Month_^FS
^FO240,410,^A0N,27,27^FD TAKATA-PETRI AG^FS
^FO240,440,^A0N,27,27^FD BAHNWEG 1^FS
^FO240,470,^A0N,27,27^FD 63743 ASCHAFFENBURG^FS
^FO065,470,^A0N,20,20^FD+49 6021-65-0(83)^FS
^FO150,325,^A0N,30,30^FD_Weight_^FS
^BY2,2,50
^FO0300,320^BCN,040,N,N^FD_Weight_^FS^XZ";
            var resp = new OESListener.ListenerResponse();

            resp.FinalPrintResponse(e);
        }
Exemple #2
0
        protected virtual void OnLabelPrintReceived(LabelPrintEventArgs e)
        {
            if (!PrintFromFile)
            {
                LabelPrintReceived?.Invoke(this, e);
            }
            else
            {
                var p = new LabelPrinter(e);
                p.UseFile = true;
                var result = p.PrintLabel();
                e.Response = result.ToString();
                if (Logger.Enabled)
                    Logger.Log(result.ToString());

                var resp = new ListenerResponse();
                resp.FinalPrintResponse(e);
            }
        }