Re: PR_BODY_HTML to PR_RTF_COMPRESSED to PR_BODY

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Dmitry Streblechenko \(MVP\) (dmitry_at_dimastr.com)
Date: 03/14/04


Date: Sun, 14 Mar 2004 14:31:00 -0700

That makes perfect sense - given pure RTF or HTML (either in PR_BODY_HTML or
encoded in PR_RTF_COMPRESSED), you can always extract plain text. In case of
RTF you can use the RTF control, in case of HTML, load the HTML into an
IHTMLDocument2 object, then extract pain text using
IHTMLDocument2.body.createTextRange.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Michael Tissington" <michael@nospam.com> wrote in message
news:eDx1$YgCEHA.2620@TK2MSFTNGP12.phx.gbl...
> When Outlook/MAPI copies a message to our store the following seems to
> happen
>
> 1) If PR_BODY_HTML exists then ONLY this is copied.
> 2) If PR_RTF_COMPRESSED exists then ONLY this is copied.
> 3) If ONLY PR_BODY exists then this is copied.
>
> I have tried called RTFSync ...
>
> If PR_RTF_COMPRESSED then to create the PR_BODY or
> If PR_BODY then to create the PR_RTF_COMPRESSED
>
> but this does not seem to do anything.
>
> I guess my questions comes down to how can I have messages copied to our
> store and set all three properties (especially when the originally message
> has them set).
>
>
> --
> Michael Tissington
> http://www.oaklodge.com
> http://www.tabtag.com
>
>



Relevant Pages

  • Re: XML and DOM through MFC?
    ... DOM is a really poor document mechanism, and in general it is very, very limited in what ... HTML and RTF are sort-of-unrelated; both deal with formatting and layout (while XML deals ... specified in a document available from Microsoft, and most new Office products and other ...
    (microsoft.public.vc.mfc)
  • Re: TextEdit bug in Save As HTML
    ... Open an RTF document "MyDoc.rtf" in TextEdit. ... The ".html" is added automatically, but you won't see it if the ... TextEdit does what most other apps do in similar situations. ... affects how it opens HTML files when you drag them onto TextEdit or use ...
    (comp.sys.mac.apps)
  • Re: Colored Text
    ... Although html may at first seem easy, it also requires you to escape any special characters, such as < with < & with & etc, etc. ... Generally html will be relatively slow compared to rtf. ...
    (microsoft.public.vb.general.discussion)
  • Re: Unicodezeichen im RTF Stream
    ... Nach fertigen html zu rtf Convertern habe ich schon ausschau gehalten. ... 100% korrekt, wenn Du von der "'c1'52" Notation ausgehst, musst ... "HTML to RTF" Converter bauen. ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Re: Richtext in Plaintext konvertieren
    ... PlainText holt den Nur-Text aus einem Memofeld heraus, welches in HTML formattiert ist, nicht mit RTF Tags. ... Bis Access 2003 waren RTF Felder mit RichtText Tags formattiert, seit A2007 sind diese Felder HTML formattiert. ... Du solltest also eine Function im SQL Server schreiben können, welche das Textfeld nach dem Starttag absucht und dann alles löscht bis der Endtag durch ist. ...
    (microsoft.public.de.sqlserver)