Sunday, May 4, 2014

Convert String to Barcode

To convert the sting to barcode, you just pass the string type and get the barcodestr 128 

Convert2Code128(str _str)
{
        BarCode barCode1 = BarCode::construct(barCodeType::Code128); 
        ; 
        barCode1.string(true, strUpr(_str)); 
        barCode1.encode(); 
        return barCode1.barcodeStr();
}

then setup the properties as below: