Getting number of Words in a Frame in CS4
Hello All,
I am trying to get the number of words in a Text Frame. I tried the API GetWordCountInfo of ITextUtils
For E.g. Utils<ITextUtils>()->GetWordCountInfo( iTextmodel, 0, iTotalLength, ITextUtils::kUpdateAll, ITextUtils::kStartCounting,
wordStarted, characters, words, paragraphs, lines, oversetCharacters, oversetWords, oversetParagraphs, oversetLines, bWordAcrossOverset,
helper );
I am took the value of words and checked. I am getting value such as 2049679. Even though there is no text in the frame. Am not sure what wrong value I have given as a parameter required.
Has anyone tried this before. Or Is there some other way of getting the word count from the frame. If so please do let me know.
Thank you all in advance.
Regards
Farzana.