We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Is it possible to update Include Text field in Word document using Essential DocIO?

Platform: WinForms |
Control: DocIO |
.NET Framework: 2.0

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-Windows1355102516.zip

This sample contains a helper class “IncludeTextFieldUpdateHelper.cs” which internally update the Include Text field.

The following tables contain properties and method description of IncludeTextFieldUpdateHelper class.

Properties Table:

Property Name

Type

Description

MainDocument

WordDocument

Gets or sets the Word document instance which contains the Include Text field.

MainDocumentFileName

string

Gets or sets the file name of the word document with full path.

IsUpdateSpecifiedBookmark

bool

Gets or sets a value indicating whether to replace the Include Text field with specified bookmark contents or the whole document content.

 

Note:

If bookmark defined in the Include Text field is not valid, then error message “Error! BookmarkName not defined” will be replaced instead of Include Text field.

 

Method Table:

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 valid filename.” will be replaced instead of Include Text field.

 

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile