Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook - Using Forms (http://www.outlookbanter.com/outlook-using-forms/)
-   -   get formatted text in appointmentItem's body (http://www.outlookbanter.com/outlook-using-forms/86248-get-formatted-text-appointmentitems-body.html)

sd[_2_] February 13th 09 06:57 AM

get formatted text in appointmentItem's body
 
hello

I've customized appointment form for outlook 2003 & 2007.
Is there any way to get formatted text in appointmentItem's body ?
I need to retrieve it, modify it & again set this modified formatted
text to appointmentItem Body.There is no HTMLBody/RTFBody property
like mailItem to appointmentItem.
I found Inspector.HtmlEditor ,but it is set to null.Can it be
helpful ? How to use it?
Thanks

Ken Slovak - [MVP - Outlook] February 13th 09 03:53 PM

get formatted text in appointmentItem's body
 
If you use a different API such as Extended MAPI (C++ or Delphi only), CDO
1.21 (deprecated and only unmanaged code) or a MAPI COM wrapper such as
Redemption (www.dimastr.com/redemption) you can use the PR_RTF_COMPRESSED
property (0x10090102 or in DASL syntax
"http://schemas.microsoft.com/mapi/proptag/0x10090102") you can set the
desired RTF.

In Outlook 2007 you can use PropertyAccessor to work with that property.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"sd" wrote in message
...
hello

I've customized appointment form for outlook 2003 & 2007.
Is there any way to get formatted text in appointmentItem's body ?
I need to retrieve it, modify it & again set this modified formatted
text to appointmentItem Body.There is no HTMLBody/RTFBody property
like mailItem to appointmentItem.
I found Inspector.HtmlEditor ,but it is set to null.Can it be
helpful ? How to use it?
Thanks



Dmitry Streblechenko February 13th 09 05:06 PM

get formatted text in appointmentItem's body
 
Note that simply reading the context of the PR_RTF_COMPRESSED property won't
help you much since the RTF stream is compressed.
On the MAPI level, that means that you need to use the
WrapCompressedRTFStream() MAPI function.
Redemption exposes the RTF body through the Safe*Item.RtfBody and
RDOMail.RtfBody properties.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Ken Slovak - [MVP - Outlook]" wrote in message
...
If you use a different API such as Extended MAPI (C++ or Delphi only), CDO
1.21 (deprecated and only unmanaged code) or a MAPI COM wrapper such as
Redemption (www.dimastr.com/redemption) you can use the PR_RTF_COMPRESSED
property (0x10090102 or in DASL syntax
"http://schemas.microsoft.com/mapi/proptag/0x10090102") you can set the
desired RTF.

In Outlook 2007 you can use PropertyAccessor to work with that property.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"sd" wrote in message
...
hello

I've customized appointment form for outlook 2003 & 2007.
Is there any way to get formatted text in appointmentItem's body ?
I need to retrieve it, modify it & again set this modified formatted
text to appointmentItem Body.There is no HTMLBody/RTFBody property
like mailItem to appointmentItem.
I found Inspector.HtmlEditor ,but it is set to null.Can it be
helpful ? How to use it?
Thanks





sd[_2_] February 17th 09 12:57 PM

get formatted text in appointmentItem's body
 
Thanks Ken & Dmitry


All times are GMT +1. The time now is 04:39 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com