Bar Code in SSRS Report D365FO


Bar Code in SSRS Report D365FO


Following are the simple steps to generate Bar-Code in SSRS report.

In SSRS temporary table, Bar-Code filed should be extended with BarCodeString EDT.

Use font >BC C128 Narrow

Field in SSRS should be well space otherwise bar-code scan will not work

Using following code you can generate bar-code of any value...

Example: xyzTableBuffer.BarCodeField= this.getBarcode("123456789")


    public str getBarcode(str _barCodeText)
    {
        BarcodeCode128 barcode;

        barcode = Barcode::construct(BarcodeType::Code128);
        barcode.string(true, _barCodeText);
        barcode.encode();

        return barcode.barcodeStr();
    }



Please feel free to contact me if you are facing any issue during implementation of the blog

12 comments:

  1. Hi,

    how can i achieve that on production environment..when printing to printer barcode is not showing correct - need to install the barcode on the enviroment - this cant be done on production...

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. where do we need to write this code?

    xyzTableBuffer.BarCodeField= this.getBarcode("123456789")

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. Cloud storage server
    Get Storage Server with high data capacity to store all your data. Customize data storage server at best price with 24/7 Server Support.

    ReplyDelete
  6. Explore top-notch Docker consulting services to optimize containerization strategies. Unlock efficiency and seamless deployment for your business success.

    ReplyDelete

Virtual Fields Vs Computed Fields

  Virtual Field: A virtual field in D365FO is a field that doesn't have a direct representation in the database. It's a field that y...