View Single Post
  #2  
Old December 21st 06, 02:37 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default implement word count in outlook

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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"mohanty_ashish" u30394@uwe wrote in message news:6b13b2c04ab15@uwe...
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.


Ads