Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: PreferRtfBodyToHtml Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
adam.kozovo
Newbie
Newbie


Joined: 30 June 2023
Online Status: Offline
Posts: 19
Posted: 14 July 2023 at 11:03pm | IP Logged Quote adam.kozovo

Hello
Made Rtf based Msg and using MsgConvert converted to MailMessage.
Saving as .eml or getting .BodyHtml reveals that if source Msg has page back color, it's not present in the result.

Set MsgConvert.PreferRtfBodyToHtml = True

Since this is an issue with Outlook that RTF messages with page back color, have non-back colored Html version inside, PreferRtfBodyToHtml must be set to True.
But although source Rtf body part has back color, target MailMessage Html body part won't have.

For the reference, comparing 2 Msg files with and without page back color, their Rtf part has this commands inserted inside:

"{\*\background {\shp{\*\shpinst\shpleft0\shptop0\shpright0\shpbottom0\shpfhdr0\shpbxmargin\shpbxignore\shpbymargin\shpbyignore\shpwr0\shpwrk0\shpfblwtxt1\shpz0\shplid1025{\sp{\sn shapeType}{\sv 1}}{\sp{\sn fFlipH}{\sv 0}}{\sp{\sn fFlipV}{\sv 0}}{\sp{\sn fillColor}{\sv 3506515}}{\sp{\sn fFilled}{\sv 1}}{\sp{\sn lineWidth}{\sv 0}}{\sp{\sn fLine}{\sv 0}}{\sp{\sn bWMode}{\sv 9}}{\sp{\sn fBackground}{\sv 1}}{\sp{\sn fLayoutInCell}{\sv 1}}}}}\"
Back to Top View adam.kozovo's Profile Search for other posts by adam.kozovo
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 17 July 2023 at 11:25am | IP Logged Quote Alex

Hi,

Yes, the built-in RTF-to-HTML converter is very basic and supports only a small subset of RTF features.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide