XamlFormatProvider is not available in Document Processing Asp.Net core

1 Answer 190 Views
Editor
Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
Kamran asked on 06 Apr 2022, 06:07 AM | edited on 06 Apr 2022, 09:15 AM

With reference to reported issue 

RichTextBox HtmlFormatProvider export overflow document (especially table),

Rad rich textbox Html Binding is not working when specific characters found in data and many other internal issues raised in RadRichTextBox in WPF with HTMLFormatProvider, we are considering to replace it with XamlFormatProvider.

We are designing our services in such way that it will provide HTML to old application while Xaml to WPF app. This can be done to export Telerik.Windows.Documents.Model.RadDocument to required format

I noticed that XamlFormatProvider is not available in Document Processing Asp.Net core. It means using WPF Radrichtext box with Web api's are not compatible. Currently we are unable to use XamlFormatProvider.

Another option we can consider to use DocxFormatProvider, but it export document as byte[], while our existing DB and web services structure accepts/response string data. So is there anyway to export DocxFormatProvider as Open Office Xml?

Another reason we cannot use byte[] or base64string in database, because we have search service. In this case we will unable to search on byte array or converted base 64 string.

 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 08 Apr 2022, 09:02 AM

Hi Kamran,

Your findings are correct and the XamlFormatProvider can be used in WPF applications only. I believe that the RTF format will be suitable for your case since it's a string format and you can use it in both suites. Detailed information is available here: WPF RichTextBox - Rtf.

There is a demo that shows how you can import/export in Asp.Net Core here as well: Import and Export in ASP.NET Core Editor Component Demo.

I hope this helps. Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Editor
Asked by
Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
Answers by
Dimitar
Telerik team
Share this question
or