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. 

  • André Arnaud de Calavon Profile Picture
    293,238 Super User 2025 Season 1 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

  • 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. 

  • 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

  • André Arnaud de Calavon Profile Picture
    293,238 Super User 2025 Season 1 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,

    How can I add the font ?

    Thanks.

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    293,238 Super User 2025 Season 1 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.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,238 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans