Ștefan-Mihai MOGA
Ștefan-Mihai MOGA

Reputation: 343

How to convert RTF to HTML

Could you please tell me if there is a good free C++ class/library to convert RTF to HTML? Thank you!

Upvotes: 1

Views: 3279

Answers (1)

l33t
l33t

Reputation: 19996

I would use Word Automation (i.e. integrate with Microsoft Office). Then, through the MS Word class, open the RTF, save it as HTML.

  1. Open rtf file.
  2. SaveAs using WdSaveFormat = wdFormatHTML

http://msdn.microsoft.com/en-US/library/microsoft.office.tools.word.document.saveas(v=VS.100).aspx

Upvotes: 1

Related Questions