Skip to main content

Posts

Showing posts from September, 2020

Generate a barcode from a string in D365 F&O

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(); }