Creating a Pageworks Layout by Hand (in the Business Central Client)
This guide is for a user or consultant who wants to add a Pageworks layout to a report directly in the Business Central web client — without writing an extension.
Pageworks recognizes a report layout by its MIME type, reportlayout/pageworks. When you
add a layout manually, Business Central derives the MIME type from the file extension,
so naming the file correctly is all it takes — no code and no event subscribers required.
Steps
-
Author your layout as a Pageworks HTML template and save it with a single
.pageworksextension — for exampleMyInvoice.pageworks.warningDo not use a double extension such as
MyInvoice.pageworks.html. Business Central would read the last extension (.html) and stamp the layout asreportlayout/html, and Pageworks would not pick it up. -
In Business Central, use Tell Me to open Report Layouts and choose New.
-
Set Format Options to External.
tipThis is the key step. The Word, Excel, and RDLC formats stamp their own MIME types and will never be treated as Pageworks. Only the External (custom) format derives the MIME type from your file's extension.
-
Upload your
.pageworksfile and finish.
The layout is now stamped reportlayout/pageworks, and Pageworks renders it in-tenant.
Customizing an existing Pageworks layout
The same naming applies if you copy an existing Pageworks layout to customize it:
Business Central exports the copy as a *.pageworks file, so the copy → edit → re-upload
round-trip keeps the correct MIME type automatically.
Notes
- Detection is case-insensitive, so
.Pageworksalso resolves correctly — but use lowercase.pageworksfor consistency. - Layouts provided by an extension declare
MimeType = 'reportlayout/pageworks'explicitly in AL, so their on-disk file extension does not matter. The extension-based rule above only applies to layouts you upload by hand.