views:

72

answers:

1

We are displaying HTML body extracted from .MSG files exported from Outlook.

To display the HTML body, one needs to decompress RTF from PR_RTF_Compressed field and then decode the RTF to HTML (outlook actually encodes HTML to RTF when exporting MSG files). We are using RDO library to parse the msg files and extract the HTML body.

RDO produces some HTML that is not always the same as Outlook displays (text size sometimes does not match etc.)

Is anybody aware of an implementation of HTML body extraction that would most closely match the appearance of HTML displayed by Outlook or is this impossible?

A: 
CMH
Thanks for comment. Yes, we are displaying that using IE (WebBrowser control). We can also apply a style sheet. But the HTML we get from RDO contains a lot of inline styles. We will try to focus on finding a method how to match styles rendered by word in IE. Thanks!
Marek