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 :
Microsoft Dynamics NAV (Archived)

NAV LS Retail 2017 , Add QRCode Bitmap Picture in SalesSlip ,But Size is very small!!!! how can make it bigger?

(0) ShareShare
ReportReport
Posted on by

Now , i need add QRCode in POS SalesSlip, But when i add BMP file in Slip ,after print , the QRCode picture is very small !!

like this picture:

Slip.png

Real QRCode size:

QR.png

modifyed in CodeUnit:  POS Print Utility --  Printfooter

// QRCode Part  ++

IF (NOT Transaction."Sale Is Return Sale") AND (Transaction."Transaction Type"=Transaction."Transaction Type"::Sales) THEN
BEGIN

IF ISCLEAR(FileSystemObject) THEN
CREATE(FileSystemObject,FALSE,TRUE);
QRPath:='c:\temp\'+Transaction."Receipt No."+'.BMP';
FileSystemObject.MoveFile(BOUTIL.GetQRCode(l_GetinvoiceUrl.GetInvoiceUrl(Transaction."Receipt No.",Transaction.Payment*100)),QRPath);
PrintBitmap(2,QRPath,1);

END;

// QRCode Part  --

How can make it bigger size?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    This is a custom implementation, no standard NAV. I suppose you could edit the report and increase the bitmap size.

  • Suggested answer
    Andrey Baludin Profile Picture
    3,943 on at

    Try to create it with built-in Microsoft Dynamics Nav MX Services. Read next article and replace automation to dotnet variable for your NAV2017.

    blogs.msdn.microsoft.com/.../qr-codes-for-microsoft-dynamics-nav

    Or use zxing, it allows you to set height and weight:

    dynamicsuser.net/.../creating-qr-code-in-nav-2016

  • Ahmad Bani Naser Profile Picture
    10 on at

    Hi Dawood,

    Did you find the solution, I'm having the same issue

  • Prajeesh_Nair1982 Profile Picture
    20 on at

    Is there any setup in LS retail to print the QR code?. I am using Nav 2013 LS retail and the QR code is not getting printed. Can you please share the standard code for PrintBitmap. Mine dont have the path option along with it.

    I am using PrintQRBitmap. The QR is created, saved and loaded to file but not getting printed.

    Standard Fucntion to Load the QR Code just like in //PrintWarrantyHotelSlip

    Customer Function

       QRPath := TEMPORARYPATH;

       IF (QRPath <> '') THEN BEGIN

         QRPath := QRPath + 'QrBmpExp.bmp';

         BLOBRef.Blob := GivexLoyaltyLookup."QR Code";

         RBAutoMgt.BLOBExport(BLOBRef,QRPath,FALSE);

       END;

    Standard Function

    PrintQRBitmap(Tray : Integer) : Code[20]

    //PrintQRBitmap

    PrintBuffer.INIT;

    PrintBuffer."Transaction No." := PrintBufferTransNo;

    PrintBuffer."Buffer Index" := PrintBufferIndex;

    PrintBuffer."Station No." := Tray;

    PrintBuffer."Page No." := PageNo;

    PrintBuffer."Printed Line No." := LinesPrinted;

    PrintBuffer.LineType := PrintBuffer.LineType::PrintBitmapFile;

    PrintBuffer.INSERT;

    PrintBufferIndex += 1;

    EXIT;

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Please try below link

    https://navwithnav.blogspot.com/2022/03/print-qr-code-in-payslip-with-ls-retail.html?m=1

    thanks

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
TAHER_El_Mehdi Profile Picture

TAHER_El_Mehdi 2

#1
sliderxb Profile Picture

sliderxb 2

#1
broberts Profile Picture

broberts 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans