community postReporting & Analyticscommunity - not Microsoftreviewed - checked by Opus

BC Word Layout MCP (Part 5): Format layouts and reuse a Word design

Word layout formatting tools allow changing text and cell styles in Business Central reports while preserving data bindings and field connections. Version 2.0.0 adds font validation warnings and improved table formatting APIs, enabling designers to modify appearance or convert existing Word documents to BC layouts without rebuilding fields.

post BC Captain

Tom Kapitan · 2026-10-24 · 1,192 words · about 5 min

"Formatting is selective. Asking for a blue date field should not reset its existing size or font."

Key points

  • set_text_format and set_cell_format tools change visual appearance while keeping field bindings intact
  • Font warnings alert users when layouts use fonts unavailable in BC online unless embedded
  • Designers can start from existing Word documents by mapping sample values to BC fields with agent guidance
  • Letterhead templates can be reused by providing templatePath and schemaSource to create_layout without replacing design content
  • API structure changed in v2.0.0 to use JSON arrays instead of comma-separated values and moved format properties into format object

Quotes

  • “Formatting is selective. Asking for a blue date field should not reset its existing size or font.” (Explains that format objects only override specified properties, preserving unmodified settings)
  • “A font installed on your laptop is not necessarily available in BC online.” (Critical reminder that local design preview does not guarantee font availability in production BC)
  • “That confirmation matters more than the colour choices. A sample customer’s PO number should not become BC’s own document number.” (Emphasizes that field mapping accuracy is more important than visual design when converting existing documents)

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.

  • other “BcWordLayout.Mcp@2.0.0”
  • other “al-word-layout-from-design”
  • other “al-word-layout-composite”

Heads up

  • warning: “A font installed on your laptop is not necessarily available in BC online.” (about version 2.0.0)
  • gotcha: “A good local preview is not a promise of identical fonts or pagination in BC.” (about version 2.0.0)
  • warning: “BC can refuse layouts that retain a link to an external Word template.” (about version 2.0.0)

Context

  • Features: set_text_format tool, set_cell_format tool, create_layout with templates, font validation warnings, cell fill and border formatting, field binding preservation, design-to-layout conversion workflow, header/footer layout support
  • Versions: 2.0.0

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