Re: TaskItem and AppointmentItem formated body



=?Utf-8?B?cmF6dmFudGlt?= <razvantim@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
news:EFF17AAC-6764-4715-A151-D1A69EFCE328@xxxxxxxxxxxxx:
i'm using the MAPI library in .net but i can't seem to figure out how
to use PR_RTF_COMPRESSED

If you were using ExMAPI normally, you'd do:

OpenProperty(PR_RTF_COMPRESSED) to get the compressed stream
WrapCompressedRTFStream() to get an uncompressed stream out

then use standard IStream operations on that stream, and call RTFSync
when you're done. See the documentation for PR_RTF_COMPRESSED,
basically.

I don't know what's in the "MAPI library" you're using, but you should
look for functions that are similar to those ones. I don't know which
bit of the CLR is for IStream once you're out of the ExMAPI code, but
there must be something in there somewhere.

Oh, and as Ken mentions, .Net + CDO1.21 (or ExMAPI) aren't supported.
They may work, but if mysterious things go wrong, the answer is "don't
mix those things".

http://support.microsoft.com/kb/813349
http://support.microsoft.com/kb/872895

-- dan
.



Relevant Pages

  • Re: WrapCompressedRTFStream() produces bad data
    ... OutlookSpy - Outlook, CDO ... and MAPI Developer Tool ... WrapCompressedRTFStream() is returning S_OK but it is returning ... I am extracting PR_RTF_COMPRESSED stream from a TNEF file by parsing ...
    (microsoft.public.win32.programmer.messaging)
  • WrapCompressedRTFStream() produces bad data
    ... WrapCompressedRTFStream() is returning S_OK but it is returning ... corrupt data. ... I am extracting PR_RTF_COMPRESSED stream from a TNEF file by parsing ... and the stream returned by this API might have some limitations. ...
    (microsoft.public.win32.programmer.messaging)
  • WrapCompressedRTFStream() produces bad data
    ... WrapCompressedRTFStream() is returning S_OK but it is returning ... corrupt data. ... I am extracting PR_RTF_COMPRESSED stream from a TNEF file by parsing ... and the stream returned by this API might have some limitations. ...
    (microsoft.public.win32.programmer.messaging)
  • Re: WrapCompressedRTFStream() produces bad data
    ... Once for testing, to WrapCompressedRTFStream(), I fed an IStream ... and MAPI Developer Tool ... So the stream is correct but I must be doing something wrong, ...
    (microsoft.public.win32.programmer.messaging)
  • Re: RTF to RTF Compressed
    ... uncompressed stream after writing it. ... >> How can I convert it to RTF Compressed? ...
    (microsoft.public.win32.programmer.messaging)