Tuesday, September 26, 2023

Generating 1D or 2D barcode in X++

Barcode barcode = BarcodeCode128::construct();
barcode.string(true, localInventDim.inventSerialId);
BarCodeString barCodeString = barcode.barcodeStr();
public str getBarcode(str _barCodeText)

  {

   BarcodeCode128 barcode;

   barcode = Barcode::construct(BarcodeType::Code128);

   barcode.string(true, _barCodeText);

   barcode.encode();

   return barcode.barcodeStr();

   }

No comments:

Post a Comment

Table browser URL in D365FO

Critical Thinking icon icon by Icons8