|Top Previous Next|
Assigns a page header.
(introduced in version 1.7; modified in version 15)
RVData – document to display as a header 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 header of this type is not displayed.
HFType – header type (normal/for the first page/for even pages).
This method must be called before FormatPages.
Using different headers
A header for the first page is used only if TitlePage=True, otherwise it is ignored, and a normal header is displayed on the first page.
A special header for even pages is used only if FacingPages=True, otherwise it is ignored, and a normal header is used on both odd and even pages.
rvMain, rvHeader: TRichView;
RVPrint1.TitlePage := True;
RVPrint1.SetHeader(nil, rvhftFirstPage); // hiding header on the first page
See also properties:
TRichView © trichview.com