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

Previous
Next Post »

Thanks for comments.....