I need a library for my ASP.NET MVC3 Application that can convert to and from HTML and RTF.
There are a lot out there that do just one, converting RTF to HTML. But I need to be able to go backwards too.
The closest Ive come is:
http://code.msdn.microsoft.com/windowsdesktop/Converting-between-RTF-and-aaa02a6e
But that throws the error The calling thread must be STA, because many UI components require this. Despite Ive not changed the code at all.
Disclaimer: I’m working for this company.
Doomsknight, try to use our dll library. about RTF to HTML i have posted here, what about HTMl to RTF our company also have the component for this “HTML to RTF” here http://www.htmltortf.com/convert-html-to-rtf-net/html-to-rtf-csharp-aspnet.php. Online version of HTML to RTF Pro DLL.Net also available.
Small sample code to help:
Convert HTML file to RTF file in C#:
All the best 🙂