Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Mon Aug 28, 2017 10:29 am

Hello

I want to convert rich text to html, but don't want to use RichTextEditor control. I wish there was a solution or at least we could get rich text in forma of <text,font> pairs, the same way as it is added to rich text.

Thanks

ahmadi_rad@yahoo.com
 
Posts: 43
Joined: Thu Apr 13, 2017 3:53 pm

Tue Aug 29, 2017 5:51 am

Hello,

Thanks for your inquiry.
Our Spire.Doc supports converting rtf to html, please refer to the guide and have a try.
https://www.e-iceblue.com/Tutorials/Spire.Doc/Spire.Doc-Program-Guide/How-to-Convert-RTF-to-HTML.html
If I misunderstand your requirement, please write back.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Tue Aug 29, 2017 7:35 am

Hello

The solution is good but loading a separate library costs resources. It could be useful to provide <string,font> pairs. For this time, I will use the library as you suggested.

ahmadi_rad@yahoo.com
 
Posts: 43
Joined: Thu Apr 13, 2017 3:53 pm

Tue Aug 29, 2017 8:05 am

Hello,

Thanks for your feedback.
It is not practical to get rich text directly in the format of <string,font> pairs, you have to get the rich text string first and manipulate the content. The solution I provided is the best approach so far. Once there's any better choice in the future, I will let you know.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Tue Aug 29, 2017 12:29 pm

All right, thanks

ahmadi_rad@yahoo.com
 
Posts: 43
Joined: Thu Apr 13, 2017 3:53 pm

Wed Aug 30, 2017 1:47 am

Hello,

Thanks for the response.
Please feel free to contact us if you need any assistance.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Return to Spire.XLS

cron