Hi, Readers.
Dynamics 365 Business Central 2026 wave 2 (BC29) is generally available. More details: General Availability: Dynamics 365 Business Central 2026 release wave 2 (BC29).
I will continue to test and share some new features that I hope will be helpful. In this post, I would like to talk about Use conditional visibility in the updated Word add-in.
Use conditional visibility in the updated Word add-in:
Design document reports layouts with conditional visibility using the new HideIf logic control in the Word add-in.
The control can use boolean fields in the dataset to handle visibility of the content inside.
https://www.microsoft.com/en-us/microsoft-365/roadmap?id=573329
In Business Central, the first task when you create a layout is to decide which layout type you want. You can choose among the Word, Excel, and RDLC layout types.
Word layouts are based on Word documents (.docx file type). Word layouts enable you to design report layouts by using Microsoft Word. A Word layout determines the report’s content – controlling how that content elements are arranged and how they look. A Word layout document typically uses tables to arrange content, where the cells can contain data fields, text, or pictures.

And RDLC layouts are based on client report definition layout files (.rdl or .rdlc file types). These layouts are created and modified by using SQL Server Report Builder or Microsoft RDLC Report Designer. The design concept for RDLC layouts is similar to Word layouts, where the layout determines what fields to show and how they’re arranged. However, designing RDLC layouts is more advanced than Word layouts.

This is also why we developers have always preferred RDLC. For instance, we can use decision functions like IIF in RDLC, but that’s not supported in Word layouts. More details: Decision functions

In this major update, Microsoft added a similar feature for Word Layouts in this major release. You can now design document reports with conditional visibility using the new HideIf logic control in the Word add-in, driven by boolean fields in the dataset. Let’s see more details.
First, we can find and install the Business Central add-in from the Add-ins menu below.


PS: Use the Business Central add-in for Word to add report data to a Word layout. The add-in helps you add report fields, build data tables, and control when content appears—without editing the underlying XML in the XML Mapping Pane.
There are currently two versions available. Please install the latest one.
Version 3.0.0.0

Version 2.0.4.0

Then, the Business Central tab appears on the ribbon.

You can find Hide If Empty and Hide If False under the Visibility tab.

Select the content that you want to control, and then select the appropriate action under Hide if empty. The exact selection depends on the control. For example, select a table before you apply Hide Empty Table, but select the field that controls the row’s visibility before you apply Hide Empty Table Row.
| Control | What to select | Example use |
|---|---|---|
| Hide Field if Zero | A stand-alone field or a field in a repeater | Hide a zero amount. |
| Hide Empty Table | The table, not its repeater control | Remove a table when its data item has no records. |
| Hide Empty Table Row | The field in the repeating row that controls visibility | Remove a row when the controlling field is empty. |
| Hide Empty Table Column | The controlling field in the table header | Remove a column when the field is empty for all records. |

The other one is Hide If False. Clicking on it will bring up a new pop-up window. Options for hiding content depend on your current selection. For instance, when selecting a field:

And when selecting content within a table:

Under the Boolean field dropdown, you can select all boolean fields available in this report, including any boolean fields added via Report Extensions.


Awesome! That gives us one more reason to skip RDLC. Go ahead and give it a try!
PS:
1. Word layouts can also have a subtype, which defines the layout’s role. A stand-alone layout uses the Default subtype. A layout with the Body subtype contains report-specific content that can be combined with a reusable theme and header/footer when the report runs. The theme and header/footer are separate reusable parts that administrators manage on their own. Learn more in Set up reusable themes and header/footer layouts.
2. What’s new in Document Reporting: Word add-in (2026 release wave 2)
END
Hope this will help.
Thanks for reading.
ZHU




コメント