Skip to content
Barcode in BC report layouts

Adding Barcodes to Reports

Daniel Gorski
Daniel Gorski April 06, 2022
2 min read

by using Beyond Barcodes

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:

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.

The app for this topic

Beyond Barcodes Logo

Beyond Barcodes

Business Central barcodes and QR codes on demand: embed them in documents, labels and emails – no server of your own, nothing extra to install.

Beyond Barcodes

Related posts

▸ All posts
AL object ID renumbering strategies

Renumber Object IDs: Mapping vs. Delta Pattern

August 07, 2024 · Daniel Gorski

Learn how to renumber object IDs in Business Central apps using two powerful approaches: the Mapping Pattern for control and the Delta Pattern for scalability.

Read More
Read More: Renumbering Object IDs with Mapping and Delta Patterns
XLIFF translation tool for DevOps teams

XLIFF Translation Management in Azure DevOps

November 01, 2023 · Daniel Gorski

BeyondTranslations is a translation management extension for Dynamics 365 Business Central, embedded in Azure DevOps for agile and efficient workflows.

Read More
Read More: An XLIFF translation management extension for agile teams embedded in Azure DevOps
Chrome extension for anonymizing BC data

Anonymize BC Data with a Chrome Extension

June 17, 2022 · Daniel Gorski

The BeyondAnonymizer Chrome extension lets you anonymize Business Central data easily—ideal for testing, demos, and privacy-compliant workflows.

Read More
Read More: Anonymize Data in Business Central with our Chrome Extension