You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# How to Create an IF Field in a Word Document Using the .NET Word Library
2
+
3
+
This repository provides an example of how to create an **IF Field** in a Word document using the **Syncfusion .NET Word Library (DocIO)**. It demonstrates how to create a simple IF field and how to use it with paragraphs and tables.
4
+
5
+
## Process behind IF Field integration
6
+
7
+
The sample showcases how IF fields can be programmatically added to a Word document to display different content based on conditions. Users can insert simple IF fields for text-based results or add rich content such as tables and formatted text for true/false cases.
8
+
9
+
IF field scenarios supported in this sample:
10
+
-**Simple IF Field**: Displays pass/fail status based on a numeric condition.
11
+
-**IF Field with Rich Content**: Inserts tables and formatted text for true/false statements.
12
+
13
+
## Steps to use the sample
14
+
15
+
1. Open the ASP.NET Core application where the Syncfusion DocIO package is installed.
16
+
2. Run the application and click the following buttons:
17
+
-**Create Simple IF Field**: Creates a Word document with a basic IF field.
18
+
-**Create IF Field with Rich Content**: Creates a Word document with rich content based on the IF field condition.
0 commit comments