Skip to main content



No record found.

Microsoft Dynamics AX forum

QR code printing in SSRS report

Posted on by 567


I tried printing QR code in AX 2012 R3, it is printing with below code but it isnt printing in AX 2012 R2 version.

Microsoft.Dynamics.QRCode.Encoder qrCode=new Microsoft.Dynamics.QRCode.Encoder();
System.Drawing.Bitmap bitmap;
container imageContainer;
str url='';
System.IO.MemoryStream memoryStream = new System.IO.MemoryStream();

url = Tmp.CustName + " " + custTRN + " " + date2Str(Tmp.InvoiceDate, 123, DateDay::Digits2, DateSeparator::Hyphen, DateMonth::Digits2, DateSeparator::Hyphen, DateYear::Digits4) + " " + Num2Str(taxAmount,0,2,1,3) + " " + Num2Str(Tmp.TotalAmountInc,0,2,1,3);

bitmap = qrCode.Encode(url);

bitmap.Save(memoryStream, System.Drawing.Imaging.ImageFormat::get_Png());
imageContainer = Binary::constructFromMemoryStream(memoryStream).getContainer();

Tmp.QRCode = imageContainer;

  • Udit Profile Picture
    Udit 567 on at
    RE: QR code printing in SSRS report

    code stops at "bitmap = qrCode.Encode(url)" execution, after F11, it goes for ttsnotifyabort method of application class

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,783 Super User

nmaenpaa Profile Picture

nmaenpaa 101,148


Featured topics

Product updates

Dynamics 365 release plans