Save RichView with Header and Footer doesnt work

General TRichView support forum. Please post your questions here
Post Reply
AXSchmidt
Posts: 20
Joined: Thu Mar 15, 2012 3:16 pm

Save RichView with Header and Footer doesnt work

Post 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... :(
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Can you send me a project reproducing this problem to richviewgmailcom ?
AXSchmidt
Posts: 20
Joined: Thu Mar 15, 2012 3:16 pm

Post 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
Post Reply