- Code: Select all
public int WordCount()
{
try
{
//Sometimes throws an exception
_document.UpdateWordCount();
}
catch (Exception)
{
return -1;
}
return _document.BuiltinDocumentProperties.WordCount;
}
I get a fairly accurate word count but it is sometimes off by 200+ words when compared to what Ms Word reports for the same document.
I need an accurate word count for my current project.
Any help is much appreciated.
Thanks,
Clayton
I