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
"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.
- other “DocumentAttachmentDetailsExt”
- page “Preview Files”
- codeunit 9651 “Document Report Mgt.”
- codeunit 4100 “Temp Blob”
Not found in BC28-30: page “Preview Files”.
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Attachment capabilities and limitations (preview) — possibly related: names Codeunit 4100 “Temp Blob”
- Dynamics 365 Business Central: Convert Word (.docx) To HTML (.html) within BC (No control add-in and APIs) — possibly related: both name Codeunit 9651 “Document Report Mgt.”
- Dynamics 365 Business Central: Convert Word (.docx) To PDF (.pdf) within BC (No control add-in and APIs) — possibly related: both name Codeunit 9651 “Document Report Mgt.”
- Dynamics 365 Business Central: Generate Swiss QR Code without external services/APIs — possibly related: both name Codeunit 4100 “Temp Blob”
- Dynamics 365 Business Central: How to get the page number of a PDF or Word file in AL (Display the page count on Attached Documents and Doc. Attachment List Factbox) — possibly related: both name Codeunit 9651 “Document Report Mgt.”
- Dynamics 365 Business Central: previewing PDF files in web client using the new ExtendedDataType = Document. — possibly related: both name Codeunit 4100 “Temp Blob”
- Step by Step Guide to Importing Excel Data into Business Central — possibly related: both name Codeunit 4100 “Temp Blob”
- Using streams in Business Central — possibly related: names Codeunit 4100 “Temp Blob”
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.