Hi Espen Moen Kvelland,
Thanks for your question!
Currently RadRichTextBox Document Format Providers' API is restricted only to streams.
RadDocument Import(Stream input);
Export(RadDocument document, Stream output);
This means that if you want to open a document, which is located in the DB, file system, etc. you should provide a stream to this resource.
For more information you can also check the this forum
post giving some more details about saving/loading document (including short RIA Services Demo).
If your files are on the server side in DB/File System/etc. you can provide access to them trough a web service (RIA/WCF). If the files are client-side located the opening of the files should be user intended - trough OpenFile dialog.
So - making transition from the web page to the Silverlight one could be done in for example like this: the Silverlight page should be given enough information such that it to be able to make the request to the server asking for the proper resource. For example it could be given an ID/GUID to matching the required document trough post/get data.
Saving change could be done symmetrically.
If you have any further questions please let us know.
In the upcoming version of the RadRichTextBox we will provide an extended API for importing/exporting from/to byte array for binary formats such as DOCX as well as string for the text based formats (XAML, HTML, TXT).
All the best,
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items