Skip to main content

Notifications

Announcements

No record found.

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

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,324 Moderator on at
    RE: NAV LS Retail 2017 , Add QRCode Bitmap Picture in SalesSlip ,But Size is very small!!!! how can make it bigger?

    Please try below link

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

    thanks

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

    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;

  • Ahmad Bani Naser Profile Picture
    Ahmad Bani Naser 10 on at
    RE: NAV LS Retail 2017 , Add QRCode Bitmap Picture in SalesSlip ,But Size is very small!!!! how can make it bigger?

    Hi Dawood,

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

  • Suggested answer
    Andrey Baludin Profile Picture
    Andrey Baludin 3,941 on at
    RE: NAV LS Retail 2017 , Add QRCode Bitmap Picture in SalesSlip ,But Size is very small!!!! how can make it bigger?

    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

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: NAV LS Retail 2017 , Add QRCode Bitmap Picture in SalesSlip ,But Size is very small!!!! how can make it bigger?

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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,432 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans