topic hubReporting & Analyticsofficial - Microsoftreviewed - checked by Opus

Report layouts

Report layouts in Business Central cover Word, Excel, RDLC/RDL and custom layout types, plus how to create, assign, select and update them. It answers questions about designing layouts, defining multiple layouts in AL, barcodes, fonts, hyperlinks and custom renderers.

Path: Development > Programming in the AL language > Developing reports > Report layouts · tier official · system reporting · narrative reviewed (checked by Opus)

Overview

Report layouts control the content and format of reports and documents. Business Central supports Word, Excel, RDLC and external layouts, and composite layouts that combine reusable themes with headers and footers. The overview page and “Get started creating report layouts” explain the layout types and the basic steps: choose a type, copy or export an existing layout, modify it, import it, validate it and manage its status.

Type-specific pages cover the design work. For Word, they describe creating the report, using the Business Central add-in, mapping fields with the XML Mapping pane, hyperlinks and authoring tips. For Excel, they cover the data contract, system worksheets and PivotTables. For RDL and RDLC, they cover SQL Server Report Builder and Visual Studio. Developer pages cover defining multiple layouts in the AL rendering section, adding barcodes, and building a custom report render with the OnCustomDocumentMergerEx event.

For administration, one page covers setting the layout a report uses, per company or temporarily from the request page. Another covers assigning document layouts to customers and vendors. Pages marked (Obsolete) describe the older custom layout process. Start with the overview, then go to the page for your layout type.

Key points

  • Layout types: Word, Excel, RDLC, external and composite layouts. Composite layouts combine reusable themes and headers.
  • Define several layouts for one report in AL with the rendering section, using Caption, Summary and DefaultRenderingLayout properties.
  • Word layouts use a custom XML part, the XML Mapping pane, the ReportMetadata and ReportRequest system dataitems, and the WordMergeDataItem property.
  • Excel layouts use a data contract, ExcelLayoutMultipleDataSheets, system worksheets, translations, named formulas and drillthrough. They can include PivotTables and PivotCharts.
  • RDLC and RDL layouts are designed in SQL Server Report Builder or the Visual Studio RDLC Report Designer extension.
  • Barcodes use the Barcode Font Provider interface and Barcode Symbology enum with IDAutomation fonts. The online font list covers 1D barcodes, MICR, OCR and security fonts.
  • Users set a default layout per company, pick one temporarily on the request page, or manage layouts on the Report Layouts and Report Layout Selection pages.
  • Word hyperlinks on text and picture fields use column names ending in _Url and _UrlText.

Learn pages

Videos and posts

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