Click here to Skip to main content
15,913,941 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hello Experts,
I am using a HTML Editor to store some information in database. While retrieving those data an displaying in that HTML Editor, it is coming correct. But while creating pdf reports on that, it is coming as same RTF format. So how can I show the above RTF formatted text as simple ahtml text in the report.
Please suggest me some answers.
Thank you.

example:
pdf report is displaying "<dh1 styled="text-align: center"><dstrong>TRUS BIOPSY" with some html tags in the PDF report...

instead of "

TRUS BIOPSY

"
Posted
Updated 13-Jun-14 0:10am
v3

Hello,

Here is a sample (Converting between RTF and HTML[^])

Regards,
 
Share this answer
 
Comments
Shibasankar 13-Jun-14 6:12am    
Sir,
please review the question again, I have improved it so that you can understand easily.
hi, this solution is based on C# Word component.This article presents the details-
[Spam link removed]
C#
Document document = new Document();
document.LoadFromFile(@"..\..\Sample.rtf");
document.SaveToFile("Sample.html", FileFormat.Html);
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900