community postReporting & Analyticscommunity - not Microsoftreviewed - checked by Opus

Conditional Page Breaks in Word Layouts for Business Central Reports

Adding conditional page breaks in Word layouts for Business Central reports is technically possible but problematic. The approach uses Word's 'Page break before' paragraph option, though the setting often resets after editing, making it fragile for production use.

post Miljan's Blog

Miljan Milosavljević · 2025-08-18 · 800 words · about 4 min

"Word layouts don't give us the fine-grained control RDLC does (with its inception-like rectangles-inside-tables-inside-rectangles)."

Key points

  • Word layouts don’t offer the fine-grained control of RDLC for page breaks; they rely on Word’s paragraph ‘Page break before’ option
  • Conditional page breaks per line require polluting datasets with artificial data items and are not recommended
  • Page breaks after sections like totals work but the setting frequently disappears when editing the layout, requiring reapplication
  • Hard page breaks risk creating unwanted blank pages when sections contain no data
  • Word layouts lack native conditional page break support, unlike RDLC report engines

Quotes

  • “Word layouts don’t give us the fine-grained control RDLC does (with its inception-like rectangles-inside-tables-inside-rectangles).” (Explains the fundamental limitation of Word layouts compared to RDLC for implementing page break logic)

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 “Sales Invoice”

Not found in BC28-30: report “Sales Invoice”.

Heads up

  • gotcha: “Each time you edit the Word layout, the “Page break before” setting might disappear and has to be reapplied.”
  • warning: “If you push Word too hard, it breaks — sometimes literally (I’ve managed to create a Word layout so broken it wouldn’t even save anymore).”
  • gotcha: “You risk empty white pages if the section you’re breaking before has no data.”

Context

  • Features: Word layouts, Conditional page breaks, Page break before paragraph option, Report section control, Layout editing

Source: miljan.rs, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.