Read rich text

Technical support for Spire.XLS

Moderators: iceblue support, Flash, Manager

Read rich text

Postby ahmadi_rad@yahoo.com » 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: 27
Joined: Thu Apr 13, 2017 3:53 pm

Re: Read rich text

Postby Jane.Bai » 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: 540
Joined: Tue Nov 29, 2016 1:47 am

Re: Read rich text

Postby ahmadi_rad@yahoo.com » 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: 27
Joined: Thu Apr 13, 2017 3:53 pm

Re: Read rich text

Postby Jane.Bai » 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: 540
Joined: Tue Nov 29, 2016 1:47 am

Re: Read rich text

Postby ahmadi_rad@yahoo.com » Tue Aug 29, 2017 12:29 pm

All right, thanks
ahmadi_rad@yahoo.com
 
Posts: 27
Joined: Thu Apr 13, 2017 3:53 pm

Re: Read rich text

Postby Jane.Bai » 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: 540
Joined: Tue Nov 29, 2016 1:47 am


Return to Spire.XLS

Who is online

Users browsing this forum: No registered users and 1 guest