Save RichView with Header and Footer doesnt work
Posted: Fri Feb 15, 2013 12:02 pm
I try to safe a rtf document
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...
Code: Select all
RichViewMain.RTFOptions := RichViewMain.RTFOptions+[rvrtfSaveHeaderFooter];
RichViewMain.RTFReadProperties.SetHeader(RichViewHeader.RVData);
RichViewMain.RTFReadProperties.SetFooter(RichViewFooter.RVData);
RichViewMain.SaveRTF(FFileName, False);
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...