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

Notifications

Announcements

No record found.

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
    301,025 Super User 2025 Season 2 on at

    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

    Hello,

    How can I add the font ?

    Thanks.

  • André Arnaud de Calavon Profile Picture
    301,025 Super User 2025 Season 2 on at

    Hi mimi51340,

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

  • mimi51340 Profile Picture
    50 on at

    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

    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
    301,025 Super User 2025 Season 2 on at

    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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans