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, ...
Unanswered

QR code printing in SSRS report

(0) ShareShare
ReportReport
Posted on by 567

Hi,

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;

I have the same question (0)
  • Udit Profile Picture
    567 on at

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

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... 521 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 438

#3
Adis Profile Picture

Adis 261 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans