web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

How to change QR Code Font in SSRS Report D365

(0) ShareShare
ReportReport
Posted on by 20

Greeting Everyone,

When i generate QR code in my report this is how it looks.

pastedimage1652179358566v2.png

Is it possible to change the QR Image font to somethin simpler like for example 

pastedimage1652179418562v3.png

As the qr will be printed on a sticker of various sizes the current printing sticker is hard to scan because of small size.

Thanks in Advance.

My current code 

---------------------------------------------------------------

str QrCodeBase64String;
Microsoft.Dynamics.ApplicationSuite.QRCode.Encoder qrCode;
System.String netString;
str tempFileName;
System.Drawing.Bitmap netBitmap;
Bitmap imageQR;
FileIOPermission perm;
BinData binData;
container imageContainer;
;


QrCodeBase64String = inventTrans.inventDim().inventBatchId;

qrCode = new Microsoft.Dynamics.ApplicationSuite.QRCode.Encoder();


binData = new binData();
tempFileName = qrCode.GetTempFile(QrCodeBase64String);
perm = new FileIOPermission(tempFileName,'RW');
perm.assert();
binData.loadFile(tempFileName);
imageContainer = binData.getData();

QRCodeTokenTmp.inventBatchIdPrefix = inventTrans.inventDim().inventBatchId;
QRCodeTokenTmp.configId = inventTrans.inventDim().configId;


QRCodeTokenTmp.QrCodeBase = new EFDocQRCode_BR().generateQRCode(QrCodeBase64String);

QRCodeTokenTmp.insert();

--------------------------------------------------------

Thanks in advance

I have the same question (0)
  • abdultp Profile Picture
    867 on at

    Hi,

    As you're encoding inventbatchid having the string size of 20, set encoder version to 2.

    qrCode = new Microsoft.Dynamics.ApplicationSuite.QRCode.Encoder();

    qrCode.set_Version(2);

  • Usama Naeem Profile Picture
    20 on at

    Hi Abdul Wasi

    qrCode.Version = 2;

    is this the correct way to set the version because Qr image is still the same

    i cannot find any set_version method in the 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 551 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans