Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
In my application I need to convert HTML to RTF for print purpose.I have one folder in my solution that contains HTML file what I want to do is just take that file and convert to RTF in C#.

Please help me.

Thanks in Advance.
--RG
Posted
Comments
Sergey Alexandrovich Kryukov 5-Jun-14 2:46am    
Why do you think it should help you to print?
—SA

"Print purpose" is a really bad excuse for converting modern and actively developing HTML into majorly obsolete RTF. But there are couple of very good works on CodeProject where it is done for really good purposes. Please see:
A Professional HTML Renderer You Will Use[^],
WPF HTML Supported TextBlock[^].

You may find those article unrelated at first glance, but look properly at the code: it's done by rendering HTML in the form of RTF. Something which you are trying to achieve.

—SA
 
Share this answer
 
Comments
Ramug10 5-Jun-14 2:53am    
it's not for printing I need to send this RTF to other system.See I want html file as RTF fomat.
 
Share this answer
 
Comments
OriginalGriff 28-Oct-22 0:42am    
While I applaud your urge to help people, it's a good idea to stick to new questions, rather than 8 year old ones. After that amount of time, it's unlikely that the original poster is at all interested in the problem any more!
Answering old questions can be seen as rep-point hunting, which is a form of site abuse. The more trigger happy amongst us will start the process of banning you from the site if you aren't careful. Stick to new questions and you'll be fine.

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