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 :
Small and medium business | Business Central, N...
Suggested Answer

QR code generation in AL

(6) ShareShare
ReportReport
Posted on by 54
I tried to add a QR code to one of my reports, I followed the same steps in https://yzhums.com/36151/ but with no success.
 
Here is the function that generates the QR code : 
 
 
I also downloaded the "IDAutomation2D" font.
 
 
 
I have the same question (0)
  • Suggested answer
    Ramesh Kumar Profile Picture
    7,555 Super User 2026 Season 1 on at
    Hi,
     
    Can you please double check on the below
     
    Confirm IDAutomation2D is installed on the machine running the report (typically the BC server or the developer machine if previewing in RDLC) and textbox that displays the QR string uses the IDAutomation2D font exactly (case-sensitive).
     
    Thanks
    Ramesh
     
    If this was helpful, please check the "Does this answer your question?" box and mark it as verified.
     
     
     
     
  • Suggested answer
    YUN ZHU Profile Picture
    100,785 Super User 2026 Season 1 on at
    Is this the On-Pre version?
    If so, you will need to purchase the fonts. My test version is the cloud version, and the fonts are purchased by Microsoft.
     
    Hope this helps.
    Thanks.
    ZHU
  • Suggested answer
    RockwithNav Profile Picture
    9,113 Super User 2026 Season 1 on at
  • Suggested answer
    Jeffrey Bulanadi Profile Picture
    9,121 Super User 2026 Season 1 on at

    Hi,

    Generating QR codes in AL using the IDAutomation2D font can be deceptively tricky, especially when the report renders blank or doesn’t recognize the encoded string.

    Here’s what’s possible:

    • Your AL function looks correct — using BarcodeFontProvider2D.EncodeFont() with the IDAutomation2D font and QR-Code symbology is the standard approach. Just make sure the font is installed on the report rendering machine (or embedded in the RDLC layout if you're using BC SaaS).
    • In your RDLC report, the TextBox that displays the QR code must have its font explicitly set to IDAutomation2D. If it defaults to something else, the encoded string won’t render as a barcode.
    • Also confirm that the QRCode variable is bound to the correct field in the RDLC layout. If you're using EnableExternalImages = true, that’s only needed for image-based QR codes — not font-based ones.
    • If you’re still getting a blank output, try printing the encoded string as plain text first to confirm it’s being generated. If it shows up, the issue is likely font-related. If it doesn’t, check that BarcodeURL is populated and passed correctly into the report.
    • As an alternative, you can use the QuickChart API to generate QR codes as images and embed them via a TempBlob stream. This avoids font dependencies and works well in SaaS environments.


    Helpful references:

    Generate Enhanced QR Codes – CloudFronts
    Print QR Code in AL Report – Dynamics Community
    Barcode Generator PowerTool – Insight Works
    QR Code via Web Service – Erik Hougaard (YouTube)


    If you find this helpful, feel free to mark this as the suggested or verified answer.

    Cheers
    Jeffrey

  • Suggested answer
    Sohail Ahmed Profile Picture
    11,175 Super User 2026 Season 1 on at
    adding more details 
     
     
     
     
    Mark this as verified answer if it helps you 

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,909 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,145 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 974

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans