How to update Include Text field in Word document using WPF DocIO ?
No, it is not possible to directly update Include Text field in Word document using Essential® DocIO. But you can create a helper class to update the Include Text field explicitly in your sample application using Essential® DocIO.
The following sample demonstrates how to implement helper class to update the Include Text field using Essential® DocIO.
https://www.syncfusion.com/downloads/support/directtrac/general/IncludeTextUpdate_WPF-1385488466.zip
This sample contains a helper class “IncludeTextFieldUpdateHelper.cs” which internally update the Include Text field. The following table has API details of IncludeTextFieldUpdateHelper class.
Properties Description:
Property Name | Type | Description |
---|---|---|
MainDocument | WordDocument | Specify the word document instance which has the Include Text field. |
MainDocumentFileName | string | Specify full path of the word document which has the Include Text field. |
IsUpdateSpecifiedBookmark | bool | True to replace the Include Text field with specified bookmark contents or else the whole document content is replaced.
Note: if Include Text field does not contain any valid bookmark in the specified document, then error message “Error! BookmarkName not defined” will be replaced.
|
Method Description:
Method Name | Return Type | Description |
---|---|---|
UpdateIncludeTextField() | void | Updates the Include Text field in the Word document. Note: if Include Text field does not contain any valid file name, then error message “Error! Not a valida filename.” will be replaced instead of Include Text field.
|
I hope you enjoyed learning about how to update Include Text field in Word document using WPF Essential® DocIO.
You can refer to our WPF Essential® DocIO feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our example to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!