implement word count in outlook

  • Thread starter Thread starter mohanty_ashish
  • Start date Start date
M

mohanty_ashish

Hi,
Is it possible to implement the word count in outlook which will count the
words in runtime, i mean while composing a new mail it should keep on
counting the number of characters typed.
Any VC++ or VB code in this regard will be a great help for me.

Thanks in advance,
Ashish.
 
If WordMail is being used you can get the WordEditor object of the
Inspector, which is a Word document object. That lets you use the Word
object model to count words. For HTML the HTMLEditor would be IE or whatever
is the default HTML editor. In that case you'd use the IE object model for a
document. For the Outlook editor you'd have to parse the Body property and
split that string by spaces to get a rough count of the words.

In Outlook 2007 you only have the Word editor so that would always be
available.
 
Back
Top