Skip to main content



No record found.

Dynamics 365 Community / Forums / Finance forum / QRCode on SSRS report
Finance forum

QRCode on SSRS report

Posted on by 70

I have a problem with generating the correct QR code on the report. Dynamics365 FO version - Platform 8.1.2 Update 22.
In the previous version of the system (platform 7.3 update 12) I used the method below

Microsoft.Dynamics.ApplicationSuite.QRCode.Encoder qrCode       = new Microsoft.Dynamics.ApplicationSuite.QRCode.Encoder();
        System.IO.MemoryStream                     memoryStream = new System.IO.MemoryStream();
        System.Drawing.Bitmap                      bitmap;
        container                                  imageContainer;
        System.String                              url = '1w23e4r5t67';
        bitmap = qrCode.Encode(url);
        bitmap.Save(memoryStream, System.Drawing.Imaging.ImageFormat::Png);
        imageContainer = Binary::constructFromMemoryStream(memoryStream).getContainer();

And it worked, every phone with the camera and the readings for reading QR codes could read the code correctly, but after upgrading the system to version 8.1.2 the method stopped working, generates the code, but when trying to read him using the application receives the message "Unknown Encoding". Now the qr code appears on the report as before, but I can not read it:


Do you have any idea why this is happening? Somebody can help? Maybe you have a contact to someone who know how to resolve this? 

  • CaspJegl Profile Picture
    CaspJegl 70 on at
    RE: QRCode on SSRS report

    Information for people who search for causes and solve the problem with the correct generation of the QR code:

    I replaced the dll file (Microsoft.Dynamics.ApplicationSuite.QrCode.dll) on the virtual machine (ver 8.1.2) with an older version of this file from the virtual machine (ver 7.3) and the problem disappeared, the code is generated correctly and I am able to read on every device.

    At this point, I do not know yet whether replacing the file causes some errors in other places. In my code the compiler did not return any errors, did not return any errors while compiling the ApplicationSuite model. At this moment everything works.

    Now I can use this code:

            Microsoft.Dynamics.ApplicationSuite.QRCode.Encoder qrCode = new Microsoft.Dynamics.ApplicationSuite.QRCode.Encoder();
            System.Drawing.Bitmap   bitmap;
            container               imageContainer;
            str                     url="abcdefghijklmnopqrstuvwxyz";
            System.IO.MemoryStream memoryStream = new System.IO.MemoryStream();
            bitmap = qrCode.Encode(url);
            bitmap.Save(memoryStream, System.Drawing.Imaging.ImageFormat::Png);
            imageContainer = Binary::constructFromMemoryStream(memoryStream).getContainer();

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .


André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,459 Super User

Martin Dráb Profile Picture

Martin Dráb 225,862 Super User

nmaenpaa Profile Picture

nmaenpaa 101,148


Featured topics

Product updates

Dynamics 365 release plans