Zum Inhalt springen
Barcode in BC report layouts

Adding Barcodes to Reports

Daniel Gorski
Daniel Gorski 06. April 2022
1 Min. Lesezeit

by using www.beyond-barcodes.de

Our module on AppSource includes objects that you need to add barcodes to reports.

It's basically a two-liner to generate barcodes or qr-codes in your report:

Barcode generation in report layout

Our project on GitHub shows you in some different ways on how to integrate our API to generate barcodes. You can also use our Dynamics 365 Business Central App.

You can easily extend the standard reports which is using a word layout:

  1. Create a barcode for any value you want. In this example it's the "No." of our Sales Quote or Sales Order.
  2. Import the stream into any record with a field of type MediaSet or Blob. This example is using a MediaSet on table 27, which is a standard field. Why not? ;-)
  3. Add a column with that MediaSet/Blob into your dataset.
reportextension 50102 "ABC Sales Quote" extends "Standard Sales - Quote"
{
    WordLayout = '.\\src\\StandardSalesQuote.docx';
    dataset
    {
        modify(Header)
        {
            trigger OnAfterAfterGetRecord()
            var
                InStr: InStream;
            begin
                Beyondbarcodesde.CreateBarcodeOnDocument(Header."No.", TempItem);
            end;
        }
        add(Header)
        {
            column(BarcodePicture; TempItem."Picture") { }
        }
    }

    var
        Beyondbarcodesde: Codeunit "ABC beyond-barcodes-de";
        TempItem: Record Item temporary;
}

Please follow us on LinkedIn.

beyondit
msdyn
Business Central
Barcodes
Reporting
E-Invoicing-Formate UBL, CII, ZUGFeRD und Factur-X im Vergleich

UBL, CII, ZUGFeRD, Factur-X: Die E-Invoicing-Formate endlich verständlich erklärt

UBL, CII, ZUGFeRD oder Factur-X – diese E-Invoicing-Formate werden ständig verwechselt. Wir erklären den Unterschied zwischen reinen XML-Formaten und Hybridform

Weiter lesen: UBL, CII, ZUGFeRD, Factur-X: Die E-Invoicing-Formate endlich verständlich erklärt
Weiter lesen: UBL, CII, ZUGFeRD, Factur-X: Die E-Invoicing-Formate endlich verständlich erklärt
E-Invoicing formats UBL, CII, ZUGFeRD and Factur-X compared

UBL, CII, ZUGFeRD, Factur-X: E-Invoicing Formats Finally Explained

UBL, CII, ZUGFeRD or Factur-X – these e-invoicing formats get confused all the time. We break down the difference between pure XML formats and hybrid PDF-plus-X

Weiter lesen: UBL, CII, ZUGFeRD, Factur-X: E-Invoicing Formats Finally Explained
Weiter lesen: UBL, CII, ZUGFeRD, Factur-X: E-Invoicing Formats Finally Explained