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)

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,166 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.

  • Suggested answer
    Andrey Baludin Profile Picture
    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

  • Ahmad Bani Naser Profile Picture
    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

  • Prajeesh_Nair1982 Profile Picture
    20 on at
    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;

  • Suggested answer
    Nitin Verma Profile Picture
    21,696 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

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Alexander Ermakov Profile Picture

Alexander Ermakov 2

#2
SC666 Profile Picture

SC666 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans