WPRichText SaveToFile

  • Hi

    I load a RTF in WPRichText, it display exactly what we see when we open a RTF in Microsoft Word.

    But problem arises when i save this file and again open it in Microsoft Word, it does not show highlighted text, and all the RTF setting got change in it too.

    I m using following statements to load and save the RTF file:

    LoadFromFile(XMLFile, true, "RTF");
    XMLMemo->SaveToFile(xOutputFile, false, "RTF");

    Thanks
    Anjali

    • Offizieller Beitrag

    Hi,

    Microsoft Word does not support the background colors for text WPTools does support.

    There is a compiler define WRITEHIGHLIGHT in wpiowritertf to save the word higlight flag insted of /cb.

    Regards,

    Julian Ziersch