topic hubReporting & Analyticsofficial - Microsoftunreviewed - model text not yet checked

Report layouts

Report layouts in Business Central: how to create, assign, and manage Word, Excel, and RDLC/RDL layouts, add barcodes and hyperlinks, define multiple layouts in AL, and build custom renderers. It answers questions about layout design, selection, fonts, and legacy (obsolete) layout procedures.

Path: Development > Programming in the AL language > Developing reports > Report layouts · tier official · system reporting · narrative unreviewed (model text not yet checked)

Overview

Report layouts control the content and format of reports and documents. The section covers Word, Excel, RDLC/RDL, and external layout types, plus composite layouts that combine reusable themes with headers and footers. “Report and document layouts overview” explains the concepts, and “Get started creating report layouts” shows how to export an existing layout or start from a blank one, then manage status, validation, and retirement on the Report Layouts page. Format-specific pages follow. For Word, they cover the XML Mapping pane, the Business Central Word add-in, hyperlinks, and authoring tips. For Excel, they cover creating layouts, the data contract, and system worksheets. For RDL and RDLC, they cover SQL Server Report Builder and the Visual Studio designer. Developer pages cover defining multiple layouts in the AL rendering section, adding barcodes with barcode providers and fonts, and writing a custom report renderer. Selection and assignment are covered by “Set the Layout Used by a Report” and “Define Document Layouts for Customers and Vendors”. Pages marked “(Obsolete)” describe older RDLC and Word workflows and point to the current pages. Start with the overview and the getting started page.

Key points

  • Layout types are Word, Excel, RDLC/RDL, and external, plus composite layouts that combine reusable themes, headers, and footers.
  • Get started: export an existing layout to customize it, or create a new layout from a blank template, then manage status, validation, and retirement on the Report Layouts page.
  • Word layouts are built with the XML Mapping pane (content controls, repeating rows, images, labels) or with the Business Central Word add-in, which has Add Data, Insert table, and Add repeater.
  • Word hyperlinks use URL columns named with the _Url and _UrlText suffixes, for text and picture fields.
  • Excel layouts support formulas, PivotTables, PivotCharts, multiple worksheets, worksheet protection, and sensitivity labels. The data contract uses system worksheets, translations, named formulas, and ExcelLayoutMultipleDataSheets.
  • In AL, the rendering section defines multiple layouts (Word, Excel, RDLC, Custom) per report, with Caption, Summary, and DefaultRenderingLayout properties.
  • Barcodes use the Barcode Font Provider interface and Barcode Symbology enum, with EncodeFont and ValidateInput. IDAutomation fonts cover 1D and 2D symbologies online.
  • Users can set a default layout per company, switch layouts temporarily from the request page, and assign document layouts to customers and vendors, including email body and attachment layouts.

Learn pages

Videos, posts and code changes

Linked by a Haiku matcher with a grounding quote from the item’s summary (link/topics.ts); machine-generated.

Business Central pages and reports

The pages, reports and queries this hub’s Learn pages name (ms.search.form, API reference), joined to the code by exact object id (data/index/docs-objects.json); a page shows the table it runs on.

Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.

What Learn documents here 8 of 22 Learn pages

Show 14 more