Could you please tell me if there is a good free C++ class/library to convert RTF to HTML? Thank you!
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I would use Word Automation (i.e. integrate with Microsoft Office). Then, through the MS Word class, open the RTF, save it as HTML.
- Open rtf file.
- SaveAs using WdSaveFormat = wdFormatHTML
http://msdn.microsoft.com/en-US/library/microsoft.office.tools.word.document.saveas(v=VS.100).aspx