Convert RTF to HTML in .NET

后端 未结 4 836
陌清茗
陌清茗 2021-01-19 18:47

I\'ve managed to do the reverse using WebBrowser and RichTextBox.

But how would I convert RTF to HTML?

4条回答
  •  难免孤独
    2021-01-19 19:45

    The only problem is when you work on a budget, additional costs mean lower profit, so I started to develop my own version. The main problem is that at the moment it only supports Bold and Italic, and certain entities (&, ©, ®, &trade, &euro and &###) and lacks both font and color support, but it is still a work in progress. I am adding font and color, but my headache is that these could come from stylesheets rather than the old fashion html tags.

    I am writing this in VB.NET and have posted the startup code on CodeProject

    Startup Code

提交回复
热议问题