<< Click to display table of contents >>


Prints the specified range of pages.

procedure PrintPages(firstPgNo, lastPgNo: Integer; Title: String

  Copies: Integer; Collate: Boolean;

  PageSet: TRVPageSet = rvpsAll; Ascending: Boolean = True);

The method prints the document from SRichViewEdit according to PrintMode.

The properties SRichViewEdit.MinPrintedItemNo and MaxPrintedItemNo are taken into account.

firstPgNo – index of the first page to print (from 1).

lastPgNo – index of the last page to print (from 1).

Title – document title for the Print Manager.

Copies count of copies to print.

PageSet set of pages for printing (all/odd/even).

Ascending switches normal/reverse order of printing (True: 1, 2, 3; False: 3, 2, 1). Printing in reverse order is not supported if PrintMode = srvpGrid.

Collate if more than one copy is printed, defines whether to print them together or not (if Collate, pages are printed like 1, 2, 3, 1, 2, 3. If not Collate, pages are printed like 1, 1, 2, 2, 3, 3).

In the topic about the Print method, you can read the notes about using these parameters in grid and poster modes.

How to print on two sides of paper:

1.Print odd pages in normal order.

2.Flip the sheets over, then reinsert them into the printer. If page count is odd, do not insert the last page.

3.Print even pages in reverse order.

See also: