community postPlatform, DevOps & Performancecommunity - not Microsoftreviewed - checked by Opus

Dynamics 365 Business Central: How to preview Word (.docx) in web client without downloading (No control add-in and APIs)

The post presents two methods to preview Word (.docx) files in Business Central 2025 wave 1 without downloading: converting Word to PDF then previewing as PDF, or converting Word to HTML and displaying in a preview page. These approaches extend the native PDF preview feature to support Word documents.

post Dynamics 365 Lab

Yun Zhu · 2025-06-17 · 621 words · about 3 min

"Although this can preview the Word (.docx), it is quite complicated."

Key points

  • Business Central 2025 wave 1 added native PDF preview in web client, but cannot preview other formats like Word
  • First solution converts Word documents to PDF and leverages the built-in PDF preview capability
  • Second solution converts Word to HTML and displays it using a custom preview page with WebPageViewer control
  • Both methods avoid external APIs and control add-ins, using only native Business Central capabilities
  • Example code provided for both approaches using Document Report Management codeunit

Quotes

  • “Although this can preview the Word (.docx), it is quite complicated.” (Justifies why the author presents simpler alternatives to existing complex solutions using Graph API)

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.

Not found in BC28-30: page “Preview Files”.

No source states these links: they share an object, a model read them, or a person found the same subject.

Heads up

  • preview-disclaimer: “In Business Central 2025 wave 1 (BC26), Microsoft released the Preview PDF attachments directly in web client feature.” (about version BC26, version 2025 wave 1)

Context

  • Features: Preview PDF attachments in web client, Convert Word to PDF, Convert Word to HTML, Document attachment handling, WebPageViewer control, File preview without download
  • Versions: 2025 wave 1, BC26

Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.