Composite Layouts in Business Central 29.0: Brand One Report End to End
Business Central 29.0 enables composite layouts where branding is split into three separate parts (header/footer, theme, and body) that merge at render time instead of baking everything into one Word document. The post walks through a complete example of branding the Standard Sales Invoice report for Contoso, covering setup in both the UI and AL code.
post Mohana's Dynamics NAV & BC blog
Key points
- Composite layouts split a document into a Body layout plus a reusable header/footer part and a theme part, merged when the report runs
- Theme and header/footer parts must be approved before they can be assigned, and only Body subtype layouts accept them; Default and RDLC layouts do not
- Defaults for theme and header/footer can be set at global, company, report and layout level, with the most specific winning, which makes multi-company branding easy
- In AL, the Subtype, HeaderFooterPart and ThemePart properties configure this; theme files must be .dotx while body and header/footer files are .docx
- A shared company information dataitem in Word layouts in 29.0 lets one header/footer part work across many reports
AL objects mentioned
As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.
- report 1306 “Standard Sales - Invoice”
- other “Manage themes and header-footer layouts”
- other “Report Layouts”
- other “Report themes and header-footer setup”
- other “Report defaults for themes and header-footer setup”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Dynamics 365 Business Central: How to run a Report in Preview Mode without the Request Page (Hide Request Page) — possibly related: both name Report 1306 “Standard Sales - Invoice”
- Dynamics 365 Business Central: Set a PDF password for the report (Password protect the document using a user and admin passwords) – No control add-in and APIs — possibly related: both name Report 1306 “Standard Sales - Invoice”
Heads up
- gotcha: “A freshly created part cannot be assigned to anything yet.” (about version 29.0)
- gotcha: “A theme has to be a Word template, a .dotx file, not a .docx.” (about version 29.0)
- gotcha: “A Default layout is a complete document that already owns its own header, footer and styling.” (about version 29.0)
- warning: “Open it in Word first and strip out the header, the footer and the hard-coded styling.” (about version 29.0)
Context
- Features: Composite layouts, Report themes, Header/footer parts, Theme merging, Approval workflow, Layout defaults cascading, Multi-company branding, Shared company information dataitem
- Versions: 29.0
Source: Mohana’s Dynamics NAV & BC blog, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.