Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Can someone guide me h...
Finance forum
Suggested answer

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

Posted on by 253

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

  • Chomchanok Profile Picture
    Chomchanok 253 on at
    RE: Can someone guide me how to import a QR Code font in my Form

    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());
    }
    }

  • Hana Xue Profile Picture
    Hana Xue Microsoft Employee on at
    RE: Can someone guide me how to import a QR Code font in my Form

    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
    Chomchanok 253 on at
    RE: Can someone guide me how to import a QR Code font in my Form

    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
    Hana Xue Microsoft Employee on at
    RE: Can someone guide me how to import a QR Code font in my Form

    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

  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,545 Moderator on at
    RE: Can someone guide me how to import a QR Code font in my Form

    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.

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,570 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,683 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans