Here is the job for Generate Barcode for String value in
Ax 2012.
Output:
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:
Thanks for comments.....