How to Generate Barcode for String Value in Ax 2012

Here is the job for Generate Barcode for String value in Ax 2012. 

static void Barcode(Args _args)
{
    str Number;
    BarcodeCode128 Mybarcode;
    Number = "1254879856";
    Mybarcode= BarcodeCode128::construct();
    Mybarcode.string(true,Number );
    Mybarcode.encode();
    info(strFmt("%1",Mybarcode.barcodeStr()));
    info(strFmt("%1",Mybarcode.barcodeStrHR()));
}

Output:

Related Posts

Thanks for comments.....

:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:P
:o
:>)
(o)
:p
:-?
(p)
:-s
(m)
8-)
:-t
:-b
b-(
:-#
=p~
$-)
(y)
(f)
x-)
(k)
(h)
cheer