rvico TRichView Reference | TRVPrint

TRVPrint.PrintPages

Top  Previous  Next

Prints the range of pages, from FirstPgNo to LastPgNo

procedure PrintPages(FirstPgNo, LastPgNo: Integer; Title: String;

  Copies: Integer; Collate: Boolean);

This method takes MinPrintedItemNo and MaxPrintedItemNo properties into account.

Parameters

FirstPgNo – the first page to print, must be in range 1..PagesCount.

LastPgNo – the last page to print, must be in range 1..PagesCount.

Title – the text that is listed in the Print Manager when printing.

Copies –  specifies the number of copies to print.

Collate –  if more than one copy is selected, specifies whether you want the copies to be collated.

You need to assign source document for printing (AssignSource method) and format pages (FormatPages method) before calling this method.

See also methods:

Print.

See also events:

OnSendingToPrinter;

OnPrintComponent;

OnPagePrepaint;

OnPagePostpaint.


TRichView © trichview.com