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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

UpdateWordCount is missing in version 16.3.0.21

Thread ID:

Created:

Updated:

Platform:

Replies:

140897 Nov 13,2018 11:08 AM UTC Nov 14,2018 07:09 AM UTC WinForms 1
loading
Tags: DocIO
Mohan
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.
        document.UpdateWordCount(false);
        //Get the updated words count
        int wordCount = document.BuiltinDocumentProperties.WordCount;
        //Releases the resources occupied by WordDocument instance
        document.Dispose();
    }
}    
}
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  
 
Regards, 
Dilli babu. 


CONFIRMATION

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.

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

;