How to display formatted document on website

  • The more things I try, the less I understand this. The following code does not convert an rtf document to html, and I don't know why not. What am I missing?

    • Offizieller Beitrag

    htmlMerged.TextSaveFormat := 'HTML';
    htmlMerged.SaveToStream(s);

    creates HTML. The assignment is not necessary. Alternatively you can specify the writerclass name in TextSaveFormat - there are 2 classes for HTML, One in unit WPWriteHT and one in WPXMLFile.

    Julian