print barcode using esc command

260 views
Skip to first unread message

yudhi717

unread,
Apr 4, 2012, 12:37:53 AM4/4/12
to jZebra users
Usually I use Delphi to create apps that prints receipt, barcode,
etc.
now I’m trying to print barcode using jzebra but my command doesn’t
work.

The esc command used on Delphi is something like this:

Write(F, #27+#40+#66+#13+#0+#5+#2+#0+#104+#0+#2+'978712325317');

On jzebra I use this:

applet.append(chr(27)+chr(40)+chr(66)+chr(13)+chr(0)+chr(5)+chr(2)+chr(0)+chr(104)+chr(0)+chr(3)+"978712325317");

is there something wrong with my code?

Tres Finocchiaro

unread,
Apr 4, 2012, 8:35:29 AM4/4/12
to jzebra...@googlegroups.com
Thanks for emailing the group.

Is that last "chr(3)" a typo? It's a "#2" in the Delphi example.

If not, Eko may be able to help with syntax.

-Tres

> --
> To unsubscribe from this group, send email to jzebra-users...@googlegroups.com
>
> http://code.google.com/p/jzebra

yudhi717

unread,
Apr 5, 2012, 4:09:00 AM4/5/12
to jZebra users
the last bit is the barcode control flag display it can be 0, 1, 2, 3,
5 some other value

On Apr 4, 7:35 pm, Tres Finocchiaro <tres.finocchi...@gmail.com>
wrote:
> Thanks for emailing the group.
>
> Is that last "chr(3)" a typo?  It's a "#2" in the Delphi example.
>
> If not, Eko may be able to help with syntax.
>
> -Tres
>
> On Apr 4, 2012, at 12:37 AM, yudhi717 <yudhi...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Usually I use Delphi to create apps that prints receipt, barcode,
> > etc.
> > now I’m trying to print barcode using jzebra but my command doesn’t
> > work.
>
> > The esc command used on Delphi is something like this:
>
> > Write(F, #27+#40+#66+#13+#0+#5+#2+#0+#104+#0+#2+'978712325317');
>
> > On jzebra I use this:
>
> > applet.append(chr(27)+chr(40)+chr(66)+chr(13)+chr(0)+chr(5)+chr(2)+chr(0)+chr(104)+chr(0)+chr(3)+"978712325317");
>
> > is there something wrong with my code?
>
> > --> To unsubscribe from this group, send email tojzebra-user...@googlegroups.com
>
> >http://code.google.com/p/jzebra

Misael Moreno

unread,
Oct 7, 2015, 7:07:52 PM10/7/15
to jZebra users
Yudhi717, do you know how can i make the barcodes smaller?

Best Regards.
Reply all
Reply to author
Forward
0 new messages