web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Barcode EAN13 on a report

(0) ShareShare
ReportReport
Posted on by 50

We use labels (report) for our pallets. On this report I would like to add a barcode with the EAN13. 

The barcode number is obtained from the "inventitemgtin" table from the GTIN field (this field is a real). 

So I created a field on my report (as the picture barcode.png). 

Below the method : 


display real TRI_Exel_Item_BarCode()
{
  
    InventItemGTIN      inventItemGTIN;
    ;

    if (ProdPallet)
    {
        select firstonly inventItemGTIN
            where inventItemGTIN.itemId == SPL_prodTable.ItemId
                && inventItemGTIN.GTINSetup == GTINSetup::UCC13;

        if(inventItemGTIN)
        {
            TRI_Exel_Item_BarCode.visible(true);
            return inventItemGTIN.GTIN;

        }
         else
            {
                TRI_Exel_Item_BarCode.visible(false);
            }

    }
    else
    {
        TRI_Exel_Item_BarCode.visible(false);
    }



}

4061.barcode.png

The barcode appears on the report but I cannot read this barcode, I think there is a problem. Could you help me please ? 

Thanks a lot. 

I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    299,576 Super User 2025 Season 2 on at
    RE: Barcode EAN13 on a report

    Hi mimi51340,

    You are trying to create an EAN13 barcode, but you are using the wrong font. Ensure you get a EAN13 font which you can then use in your report. Make sure, you also distribute the font to all client machines which should be able to print this report.

  • mimi51340 Profile Picture
    50 on at
    RE: Barcode EAN13 on a report

    Hello,

    How can I add the font ?

    Thanks.

  • André Arnaud de Calavon Profile Picture
    299,576 Super User 2025 Season 2 on at
    RE: Barcode EAN13 on a report

    Hi mimi51340,

    You have to add the font in the Windows operating system.

  • mimi51340 Profile Picture
    50 on at
    RE: Barcode EAN13 on a report

    Hello,

    Thanks for your reply. I tried to add the font but on my report the barcode is not readable. Maybe a problem with the check digit ?

    Because I get the EAN code from InventItemGTIN.GTIN directly. In the table the field "GTIN" contains 13 characters.

    Thanks for your help.

    2021_2D00_08_2D00_24_5F00_08_2D00_44_2D00_10.png

  • mimi51340 Profile Picture
    50 on at
    RE: Barcode EAN13 on a report

    Hello, 

    Not sure that my problem is the check digit because from the table I get 13 characters... so the check digit is already calculated. 

    Thanks for your help. 

  • André Arnaud de Calavon Profile Picture
    299,576 Super User 2025 Season 2 on at
    RE: Barcode EAN13 on a report

    You might have an incorrect EAN-13 font. Verify the barcode with an online generator: barcode.tec-it.com/.../EAN13

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,771

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 806 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 542 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans