TSRVPrint.OnSendingToPrinter

<< Click to display table of contents >>

TSRVPrint.OnSendingToPrinter

Occurs on printing.

type

  TSRVPrintingEvent = procedure(Sender: TSRichViewEdit;

    PageCompleted, FrameCompleted: Integer;

    Step:TRVPrintingStep) of object;

 

property OnSendingToPrinter: TSRVPrintingEvent;

This event is called by the printing methods.

The main printing methods are Print and PrintPages. Initially, they call this event with the following parameters: (SRichViewEdit, 0, 0, rvpsStarting). Then they call this event after printing each frame (non-poster modes assume one frame per page), with Step=rvpsProceeding. Finally, they call it with the parameters: (SRichViewEdit, 0, 0, rvpsFinished).

PageCompleted (index of page containing the completed frame, from 1) and FrameCompleted (index of the completed frame, from 1) are used if Step=rvpsProceeding.

See also:

TSRichViewEdit.OnPrinting