I
István Becze
I'm trying to implement a body length counter for and Outlook MailItem. I'm
using a custom form to present the MailItem, but on the custom form the Body
field is the standard Outlook field. (I'm not interested in HTML tags, I just
want to know how many characters the message body has.)
The first problem is that I don't have access to the control on the window
(probably because of the formating options, i.e. Text, RFT or HTML).
Therefore, I'm forced to use the data field behind the UI (i.e. Body field).
However, it seems that Outlook randomly appends something that seems like a
buffer to the text that is visible on the UI, and there is a lapse (which can
be 3-4 seconds) before the garbage at the end of the Body field is actually
truncated. This behavior causes my counter fluctuate, before it settles to
the correct number.
This problem seems to be happening more in Outlook 2007 then in 2003.
If anybody has a better way to get the Body length, I would appreciate the
help.
Thank you,
Istvan Becze
using a custom form to present the MailItem, but on the custom form the Body
field is the standard Outlook field. (I'm not interested in HTML tags, I just
want to know how many characters the message body has.)
The first problem is that I don't have access to the control on the window
(probably because of the formating options, i.e. Text, RFT or HTML).
Therefore, I'm forced to use the data field behind the UI (i.e. Body field).
However, it seems that Outlook randomly appends something that seems like a
buffer to the text that is visible on the UI, and there is a lapse (which can
be 3-4 seconds) before the garbage at the end of the Body field is actually
truncated. This behavior causes my counter fluctuate, before it settles to
the correct number.
This problem seems to be happening more in Outlook 2007 then in 2003.
If anybody has a better way to get the Body length, I would appreciate the
help.
Thank you,
Istvan Becze