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

Announcements

No record found.

News and Announcements icon
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
    304,182 Super User 2026 Season 1 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
    304,182 Super User 2026 Season 1 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
    304,182 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 681

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 446 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 202 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans