Hi Peeps! We normally came across these types of requirements that involves adding a barcode on the report e.g Production order report. So here is a piece of code that allows the a string to be converted into a barcode on the report.
public BarCodeString ShowBarcode(str _text)
{ Barcode barcode; barcode = Barcode::construct(BarcodeType::Code128); barcode.string(true, _text); barcode.encode(); return barcode.barcodeStr();}
Comments
Post a Comment