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.
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?

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.

http://www.syncfusion.com/downloads/support/directtrac/general/IncludeTextUpdate_Web-809692794.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.

 

Note: ASP.NET applications only runs in server side, so the main document which contains Include Text field and also the document which is specified in Include Text field must be within the server local disk. If the files are in client side then it cannot access it.

Article ID: Published Date: Last Revised Date: Platform: Control:
4006 02/13/2015 02/20/2015 ASP.NET Web Forms (Classic) DocIO
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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