BUG: CDO Message.Text Property May Return TruncatedID: Q192910
|
If a Collaboration Data Objects (CDO) application runs on a Chinese Traditional (CHT) or Chinese Simplified (CHS) Windows NT system, the Text property of the message may return truncated. For this to occur, the PR_BODY property of the message must be a Multi-Byte Character Set (MBCS) and contain a mix of American National Standards Institute (ANSI) and MBCS characters in the first 255 characters of the message.
The following sample Visual Basic code fragment shows how one might read the Text property of a message object using CDO:
Set sessionObj = CreateObject("MAPI.Session")
sessionObj.logon "TestUser", "TestUser", 0
Set InboxObj = sessionObj.Inbox
Set messageCol = InboxObj.Messages
Leng = messageCol.Count
Set messageFilter = messageCol.Filter
messageFilter.Unread = True
Set pMessage = messageCol.GetFirst
retv = pMessage.Text
A logic problem is preventing CDO from detecting that the Text property has been truncated.
A supported fix that corrects this problem is now available from Microsoft, but
it has not been fully regression tested and should be applied only to systems
experiencing this specific problem. If you are not severely affected by this
specific problem, Microsoft recommends that you wait for the next Microsoft Exchange Server version 5.5
that contains this fix.
To resolve this problem immediately, contact Microsoft Product Support Services
to obtain the fix. For a complete list of Microsoft Product Support Services
phone numbers and information on support costs, please go to the following
address on the World Wide Web:
http://www.microsoft.com/support/supportnet/overview/overview.aspThe English version of this fix should have the following file attributes or later:
Version File name
----------------------
5.5.2540.0 Cdo.dll
Q154871 Determining If You Are Eligible for No-Charge Technical Support
Adding the following line prior to retrieving the Text property as a work around to this problem:
n = pMessage.fields.count
Microsoft has confirmed this to be a problem in Collaboration Data Objects version 1.21.
Additional query words:
Keywords : kbCDO121 kbCDO121bug
Version : WINDOWS:1.21
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: August 3, 1999