RichTextBox: Implement conversion between RadDocument and RadFlowDocument
Add a way to convert between RadRichTextBox's RadDocument and RadWordsProcessing's RadFlowDocument.
This will enable integration scenarios between the two products, including using RadWordsProcessing's format providers for import and export.
Posted on:10 Dec 2020 11:11
Yes, this is still not implemented, it has a lot of votes, I am sure that it will be implemented in one of the future releases.
I can suggest a workaround that uses the docx format for the conversion for now:
privatevoidRadButton_Click(object sender, RoutedEventArgs e)
var rtbProvider = new Telerik.Windows.Documents.FormatProviders.OpenXml.Docx.DocxFormatProvider();
var wordsProcessingProvider = new Telerik.Windows.Documents.Flow.FormatProviders.Docx.DocxFormatProvider();
var radDocument = radRichTextBox.Document;
var docBytes = rtbProvider.Export(radDocument);
var flowDocument = wordsProcessingProvider.Import(docBytes);
Should you have any other questions do not hesitate to ask.
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Posted on:09 Dec 2020 19:52
4 years later and seems this still hasn't been added. Sure could use it about now.
Posted on:13 Oct 2016 09:03
You can implement this scenario using the HtmlFormatProvider of RadRichTextBox.
In order to use this provider, you need to add a reference to the Telerik.Windows.Documents.FormatProviders.Html assembly and a using directive for the Telerik.Windows.Documents.FormatProviders.Html namespace.
You might find helpful to check the Import/ Export article of RadRichTextBox for more information about the functionality: http://docs.telerik.com/devtools/wpf/controls/radrichtextbox/import-export/features-import-export
Posted on:10 Oct 2016 19:09
I really want from RadFlowDocument to RadDocument so i can set my RadRichTextBox.Document = htmlFormatProvider.Import("my html text);
Is there another way to do this for now?