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)