Board index » delphi » Setting RTF body of an Appointment item in Outlook
Leonid Zeitlin
![]() Delphi Developer |
Tue, 13 Dec 2005 01:38:27 GMT
Setting RTF body of an Appointment item in Outlook
Hello all,
I have the following problem. I need to create an Appointment or Task item in Outlook and set its body with RTF formatting. I know how to create the item with Outlook object mode, but I see that Outlook object model does not provide access to the RTF body and thus I need to get down to MAPI level. I thought I could get the IMessage interface of the Appointment item from its Outlook _AppointmentItem inteface by calling AppointmentItem.MapiObject.QueryInterface with IMessage IID. But this QueryInterface fails with E_FAIL return code. Can anyone comment why this happens? I tried a different route. I start a new MAPI session with MAPILogonEx, open Any help would be appreciated. Thanks. Leonid. |