This is a migrated thread and some comments may be shown as answers.

Image not being displayed

1 Answer 69 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
haider aslam
Top achievements
Rank 1
haider aslam asked on 19 Oct 2011, 03:08 PM
HI,
I am trying to display the following HTML content in WPF RadRichTextBox. The image tag is creating some issue that doesn't allow RadRichTextBox to render the HTML. Removing img tag 'src' property displays the content correctly. What am i doing wrong here?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"[]>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /
><title>Untitled</title>
<style type="text/css">
.p_CC664AAA { margin: 0px 0px 12px 0px;text-align: left;text-indent: 0pt;padding: 0px 0px 0px 0px; } 
.s_62525130 { font-family: 'Segoe UI';font-style: Normal;font-weight: normal;font-size: 12px;color: #000000; } 
</style>
</head>
<body>
<p class="p_CC664AAA"><img width="127" height="95" src="http://www.google.com//intl/en_com/images/srpr/logo1w.png" /><span class="s_62525130" /></p>
</body>
</html>

1 Answer, 1 is accepted

Sort by
0
Mihail
Telerik team
answered on 24 Oct 2011, 12:54 PM
Hi Haider Aslam,

I had no problems in importing the suggested HTML (you can find attached a screen shot).
In Silverlight a possible problem could be cross-domain policy restrictions, but in WPF the image is shown correctly.
If you can't manage to resolve the issue, please give us more information about your implementation.

All the best,
Mihail
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RichTextBox
Asked by
haider aslam
Top achievements
Rank 1
Answers by
Mihail
Telerik team
Share this question
or