AX中有对条码操作的封装,用其生成BarCodeString类型的值,再配合barcode128字体,即可在显示出条码。

    废话不说,上代码。

BarcodeCode128 barCode;

BarCodeString barCodeString;



barCode= BarcodeCode128::construct();

barCode.string(true,'balabalabala');
barCode.encode();

barCodeString=barCode.barcodeStr();

    最后在界面上,使用相应的条码字体,将barCodeString显示出来。Reinhard这里用的字体是BC C128 Narrow 48pt,显示效果较好。

相关文章:

  • 2021-11-07
  • 2021-09-06
  • 2021-09-29
  • 2022-12-23
  • 2021-05-19
  • 2021-09-09
  • 2022-02-01
  • 2021-12-05
猜你喜欢
  • 2021-09-04
  • 2022-01-16
  • 2021-06-16
  • 2021-09-28
  • 2022-01-25
  • 2021-07-03
  • 2021-10-21
相关资源
相似解决方案