Html export and import - sample

1 posts, 0 answers
  1. Sam
    Sam avatar
    19 posts
    Member since:
    Nov 2011

    Posted 15 Feb 2013 Link to this post


    I am trying to build a project similar to radeditor using RichTextBox for silverlight. I need to be able to import and export it using html. 

    I have searched all over and cannot find a good demo/example. Can you please post me a simple sample project if possible. I have tried following code and works fine for simple html... but i need top bar such as being able to cut, past, justify etc.. also be able to import/export embedded images:

    string resource = "<html><body><h1>THIS IS TEST</h1></body></html>";
    radRichTextBox1.Document = new HtmlFormatProvider().Import(resource);

    edit: also it does not show images, if i have an image say from c:\image.jpg in my html as 
    <img src=\"\\\\c:\\image.jpg\"  />

    Basically I need to read html which contains images as above and functionality to print document.(in a sense same to radeditor)

    UPDATE :::

    I managed to use this sample : and looks what i wanted for top bar and printing seems to work. The only issue is images in html can someone please help???????
Back to Top