Image not shown

1 posts, 0 answers
  1. Brew Hutch
    Brew Hutch avatar
    56 posts
    Member since:
    Apr 2010

    Posted 18 Sep 2013 Link to this post

    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)

    <telerikRTF:RtfDataProvider Rtf="{Binding rtf}" RichTextBox="{Binding ElementName=rrtb}" />
    <telerik:RadRichTextBox Grid.Row="1" Name="rrtb" />
    Note the xmal code is referred from this thread

    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?

Back to Top