TRVPrint.SetFooter

<< Click to display table of contents >>

TRVPrint.SetFooter

Assigns a page footer.

procedure SetFooter(RVData: TCustomRVData;

  FooterType: TRVHFType=rvhftNormal);

(introduced in version 1.7; modified in version 15)

Parameters:

RVData – document to display as a footer of the type specified in HFType; the document is not copied to RVPrint, so do not modify and do not destroy it until printing is completed. If RVData is nil, a footer of this type is not displayed.

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

This method must be called before FormatPages.

Using different footers

A footer for the first page is used only if TitlePage=True, otherwise it is ignored, and a normal footer is displayed on the first page.

A special footer for even pages is used only if FacingPages=True, otherwise it is ignored, and a normal footer is used on both odd and even pages.

Example:

var

  rvMain, rvFooter: TRichView;

  RVPrint1: TRVPrint;

...

RVPrint1.AssignSource(rvMain);

RVPrint1.SetFooter(rvFooter.RVData);

RVPrint1.TitlePage := True;

// hiding footer on the first page

RVPrint1.SetFooter(nil, rvhftFirstPage); 

See also:

SetHeader;

AssignSource.

See also properties:

FooterY.

See also:

TRichView.SetFooter.