I'm displaying html emails in a DetailView and each of the solutions I have tried renders them differently to the original and none are correct.
see "originalEmailScreenShot.png" and "originalEmail.html"
Solution 1:I made use of a ASPxHtmlPropertyEdit - see "Fault rendering in ASPxHtmlPropertyEditor.png" not how the bottom of the page renders across the full with of the control and is not aligned with the rest of the contents.
Solution 2:I pass the html to a staticText control - see "staticText1.png" and "staticText2.png" note how there seem to be additional space between all the items compared to the original. (I also included the controller "staticTextViewController.cs")
Solution 3:I have tried to pass the html in to a iframe but seem unable to escape to single and double quote successfully
void item_ControlCreated(object sender, EventArgs e)
{
IEmailMessageIncoming em = View.CurrentObject as IEmailMessageIncoming;
string body = em.Description;
StaticTextDetailItem item = (StaticTextDetailItem)sender;
item.Text = string.Format("<iframe src="javascript: '{0}'"></iframe>", body);
}
I would prefer to get solution 2 working if possible.
Thanks in advance
Trentin
Hello Trentin.
We cannot find an immediate answer and need additional time to research this scenario. We will get back to you once we have any results. Thank you for your patience.