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

Can someone guide me how to import a QR Code font in my Form

(0) ShareShare
ReportReport
Posted on by 282

Dear All,

Recently I just develop some report by ssrs to fit my users requirement but unfortunately at the final this report need to print out to paper(A4) by dot matrix printer and this report had a qr code. like this below.

 pastedimage1686624362333v3.png

But when I test by Application to scan it doesn't work so I try to test with another font of QR Code and result it sound like this.

This QR Code is work:

pastedimage1686624451758v5.png

This QR Code is work:

pastedimage1686624527686v6.png

But QR Code that I generate by D365 standard font is doesn't work.

and this is a class that generate qr code to me. Can someone guide me how to import a QR Code font in my Form

I have the same question (0)
  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at

    Hi, If you want to print the QR code on form then you can refer below article.

    ariste.info/.../

    I think these fonts are not installed in D365FO but in the machine where the report is printed. If you are printing from development environment then try installing required Barcode font from Microsoft Store from Font Settings. For network printers, we generally have print server where printers are installed, font need to be installed there to display correctly when report in printed to paper.

  • Hana Xue Profile Picture
    Microsoft Employee on at

    Hi Chomchanok,

    Please view the link below, hope it will be useful.

    Add a QR code to Dynamics 365 forms and reports - ariste.info

    Best Regards,

    Hana

  • Chomchanok Profile Picture
    282 on at

    Dear Mohit Rampal , Hana Xue ,

    I can customize report to generate QR code and it show in a image as sample that I attach in this forum, but My problem is QR Code are print by dot matrix and I can't scan then I want to find another font that can work.

  • Hana Xue Profile Picture
    Microsoft Employee on at

    Hi,

    Please check if the discussion below is useful to you:

    QR Code printing value in Dot Matrix Printer | SAP Community

    Best Regards,

    Hana

  • Chomchanok Profile Picture
    282 on at

    Hi all,

    situation for me now I can generate QR Code (like a left hand) but my users need to print it out by dot matrix and When I test with dot matrix printer.

    We can do but the QR Code need to changed(like a right hand) and this below is my code. Can someone guide me.

    ps. I visit this link Add a QR code to Dynamics 365 forms and reports ariste.info 

    and i feel the key syntax is "System.Drawing.Bitmap qrCodeImage = qrCode.GetGraphic(20); " that select the code to use but with in my code how to fix it?

    public container generateQRCode(str qrCodeString)
    {
    try
    {
        Encoder qrCodeEncoder = new Encoder();
        using(System.Drawing.Bitmap bm = qrCodeEncoder.Encode(qrCodeString))
    {
        using (var stream = new System.IO.MemoryStream())
    {
        bm.Save(stream, System.Drawing.Imaging.ImageFormat::Png);
        return Binary::constructFromMemoryStream(stream).getContainer();
    }
    }
    }
    catch (Exception::CLRError)
    {
    throw error(CLRInterop::getLastException().ToString());
    }
    }

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

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

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 470

#3
Adis Profile Picture

Adis 270 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans