rvico TRichView Reference | TRichView | TRVRTFReaderProperties

TRVRTFReaderProperties.SetFooter

Top  Previous  Next

Specifies the document to read a page footer in. Call with nil parameter to remove this link.

procedure SetFooter(RVData: TCustomRVData; FooterType: TRVHFType=rvhftNormal);

Parameters:

RVData – document to read a page footer (of the type specified in HFType) in;

HFType – footer type (normal/for the first page/for even pages).

Example:

RichView1.Clear;

RichView2.Clear;

RichView1.RTFReadProperties.ReadDocParameters := True;

RichView1.RTFReadProperties.SetFooter(RichView2.RVData);

RichView1.LoadRTF('test.rtf');

RichView1.Format// contains document

RichView2.Format// contains footer

RVPrint1.AssignSource(RichView1);

if RichView2.ItemCount>0 then

  RVPrint1.SetFooter(RichView2.RVData)

else
  RVPrint1.SetFooter(nil);

RVPrint1.AssignDocParameters(RichView1.DocParameters);

RVPrint1.FormatPages(rvdoAll);

RVPrint1.Print('Doc with footer'1, False);

See also:

SetHeader.

See also properties of TRVStyle:

MainRVStyle.


TRichView © trichview.com