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 :
Small and medium business | Business Central, N...
Suggested answer

How to create QR code in Sale report.

(0) ShareShare
ReportReport
Posted on by

Dear Friends,

I want to learn how to create a QR code on the Posted Sales Invoices, this code will contain some info like:

  • Company Name
  • Company address:
  • Company VAT No.
  • Invoice number.
  • Customer Name
  • Customer Vat No
  • Total VAT Amount
  • Document Date

Thanks in advance

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,684 Moderator on at
    RE: How to create QR code in Sale report.

    Hi,

    Can you try this? You can send your values in the parameters

     local procedure GenerateQRCode(QRCodeValue: text[250]): text
        var
            Base64Convert: Codeunit "Base64 Convert";
            TempBlob: Codeunit "Temp Blob";
            client: HttpClient;
            response: HttpResponseMessage;
            InStr: InStream;
    
        begin
            if QRCodeValue <> '' then begin
                client.get('https://barcode.tec-it.com/barcode.ashx?data='   QRCodeValue   '&code=QRCode', response);
                TempBlob.CreateInStream(InStr);
                response.Content().ReadAs(InStr);
                QRCode := Base64Convert.ToBase64(InStr);
                exit(QRCode);
            end;
        end;

  • Suggested answer
    YUN ZHU Profile Picture
    92,445 Super User 2025 Season 2 on at
    RE: How to create QR code in Sale report.

    Hi, hope the following helps.

    Using 2D barcodes Font in BC Online/SaaS (Aztec, Data Matrix, Maxi Code, PDF417, QR-Code)

    https://yzhums.com/20231/

    Thanks.

    ZHU

  • Maryam Jahangir Profile Picture
    on at
    RE: How to create QR code in Sale report.

    Thanks Nitin Verma

    But the output is not correct. The QR Code is not generate correctly

  • Maryam Jahangir Profile Picture
    on at
    RE: How to create QR code in Sale report.

    Thanks ZHU

    I have done QR code against one field(Invoice No).

    But I need 8 fields of data in QR code, some data is static Example, company name etc and Some data is dynamic example, Invoice No etc. how I will do this. Please guide me.

  • Suggested answer
    Hasnain Ali Profile Picture
    132 on at
    RE: How to create QR code in Sale report.

    Hi,

    You can try this:

    pastedimage1686738504574v2.png

    Create an Encoded String with all fields.


    You have to download IDAutomation fonts and create a textbox on repot page like this:





  • Maryam Jahangir Profile Picture
    on at
    RE: How to create QR code in Sale report.

    Thanks Hasnain Ali

    I can try but QR code is not working

    The Output is like this

    Please guide me

  • Suggested answer
    Nitin Verma Profile Picture
    21,684 Moderator on at
    RE: How to create QR code in Sale report.

    Hi,

    Now I understood your query, because you are try to scan the QR code using Zatca if I am not wrong, so those QR code will not work with that app, you need to encrypt your data according to Zatca first and then create a QR code and then try to read it.

    I have not tried yet, but you can follow below link

    learn.microsoft.com/.../system-encrypt-method

    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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,237

#2
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 3,425

#3
Sumit Singh Profile Picture

Sumit Singh 2,907

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans