Page 1 of 1

Save RichView with Header and Footer doesnt work

Posted: Fri Feb 15, 2013 12:02 pm
by AXSchmidt
I try to safe a rtf document

Code: Select all

  RichViewMain.RTFOptions := RichViewMain.RTFOptions+[rvrtfSaveHeaderFooter];
  RichViewMain.RTFReadProperties.SetHeader(RichViewHeader.RVData);
  RichViewMain.RTFReadProperties.SetFooter(RichViewFooter.RVData);
  RichViewMain.SaveRTF(FFileName, False);
But in the saved file, there is no header and no footer...


when i set the TRVStyle of all three RichViews (RichViewMain, RichViewHeader, RichViewFooter) to the same TRVStyle, it works, but then the saved file has white text with red bg... :(

Posted: Fri Feb 15, 2013 12:26 pm
by Sergey Tkachenko
Can you send me a project reproducing this problem to richviewgmailcom ?

Posted: Fri Feb 15, 2013 1:31 pm
by AXSchmidt
i created a new projext with the same load and save procedures, now it works!

i changed the three visual TRichView with the "newer" one, now the old projects works, too.

thanks for your effort