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

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Convert URL to QR Code

(0) ShareShare
ReportReport
Posted on by

Hi All,

I need to add a QR Code to an LS Retail Sales Invoice. I have managed to get the VertificationURL and a System.String variable(length is 600). Now I need for some way to be able to show this on the receipt. I create a table and store the URL as a BLOB. Snippets of the code is below:

// Save in Table VerificationQRCode is a BLOB field of type bitmap. SignedInvoice.VerificationURL is a system string(dotnet) 

VerificationQRCode.CREATEOUTSTREAM(outstr);
outstr.WRITE(SignedInvoice.VerificationUrl);

And in LS POS Codeunit:

IF VerificationQRCode.HASVALUE THEN BEGIN
lBLOBRef.Blob := VerificationQRCode;
QRPath := FileMgt.BLOBExport(lBLOBRef, 'QrBmpExp.bmp', FALSE);
PrintBitmap(2,QRPath,1);

Now my issue is, as I suspect that I am saving the Text(URL) as BLOB instead of its QR Representation. Which could be why its not printing. The POS Utility code is a copy of existing LS Retail functionality so I am pretty sure PrintBitmap would be working. I believe my blob in the table is wrong.

I need some help here, does anyone have any knowledge in this area?

*This post is locked for comments

I have the same question (0)

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans