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

Html export and import - sample

0 Answers 74 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sam
Top achievements
Rank 1
Sam asked on 15 Feb 2013, 11:00 AM
Hi,

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 :http://demos.telerik.com/silverlight/#RichTextBox/TelerikEditor and looks what i wanted for top bar and printing seems to work. The only issue is images in html can someone please help???????
Tags
RichTextBox
Asked by
Sam
Top achievements
Rank 1
Share this question
or