Hi,
I'm trying to convert the HTML format that has an image to the RTF format:
I use the following codes to get a string of RTF and then bind it
XMAL
Note the xmal code is referred from this thread http://www.telerik.com/community/forums/wpf/richtextbox/create-an-instance-of-richtextbox.aspx
So what I get when running the application is the red X image (see attached file).
Could you please advise or give me basic sample of code to address this problem?
Thanks,
Brew
I'm trying to convert the HTML format that has an image to the RTF format:
I use the following codes to get a string of RTF and then bind it
Dim content As String = "<
img
src
=
'c:\image1.png'
/>"
Dim htmlProvider As New HtmlFormatProvider()
Dim raddoc As RadDocument = htmlProvider.Import(content)
Dim rtfProvider As New RtfFormatProvider()
Dim rtf As String = rtfProvider.Export(raddoc)
XMAL
<
telerikRTF:RtfDataProvider
Rtf
=
"{Binding rtf}"
RichTextBox
=
"{Binding ElementName=rrtb}"
/>
<
telerik:RadRichTextBox
Grid.Row
=
"1"
Name
=
"rrtb"
/>
So what I get when running the application is the red X image (see attached file).
Could you please advise or give me basic sample of code to address this problem?
Thanks,
Brew