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

UpdateWordCount is missing in version

Thread ID:





140897 Nov 13,2018 11:08 AM UTC Nov 14,2018 07:09 AM UTC WinForms 1
Tags: DocIO
Asked On November 13, 2018 11:08 AM UTC

I was trying to get exact word count in document using below code.

using Syncfusion.DocIO.DLS;
using Syncfusion.DocIO;
using System.IO;

namespace DocIO_MergeDocument
class Program
    static void Main(string[] args)
       //Creates a new Word document
        WordDocument document = new WordDocument(@"InputDocument.docx");
        //Update the words count in the document.
        //Get the updated words count
        int wordCount = document.BuiltinDocumentProperties.WordCount;
        //Releases the resources occupied by WordDocument instance
But thrown Error UpdateWordCount is not in context.

Dilli Babu Nandha Gopal [Syncfusion]
Replied On November 14, 2018 07:09 AM UTC

Hi Mohan, 
Thank you for contacting Syncfusion support. 
We tried to reproduce the reported issue from our side but the Word counts are updated properly using UpdateWordCount method. We suspect that the reported issue might be document specific i.e., document elements. So, kindly we request you to share the issue causing input Word document which will be helpful for us to provide you a prompt solution at the earliest. 
Kindly refer the following forum in which we have discussed about UpdateWordCount and PageCount behaviors in details https://www.syncfusion.com/forums/96363/page-count-of-current-document  
Dilli babu. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

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

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
Live Chat Icon