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.
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:
This QR Code is work:
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
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());
}
}
Hi,
Please check if the discussion below is useful to you:
QR Code printing value in Dot Matrix Printer | SAP Community
Best Regards,
Hana
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.
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
Hi, If you want to print the QR code on form then you can refer below article.
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.
André Arnaud de Cal...
291,996
Super User 2025 Season 1
Martin Dráb
230,853
Most Valuable Professional
nmaenpaa
101,156