TRVPrint.ContinuousPrint

<< Click to display table of contents >>

TRVPrint.ContinuousPrint

Prints the whole document in the current printing job.

procedure ContinuousPrint;

This method is useful if you need to print several documents in one printing job. Otherwise, use Print or PrintPages methods.

Do not call this method if VirtualPrinter.Active = True

Example 1: How to print several documents in one printing job

In this example, the same RVPrint is used to print RichView1 and RichView2. This code starts printing RichView2 on the page where RichView1 ends.

Printer.BeginDoc; 

// printing RichView1

RVPrint.StartAt := 0

RVPrint.TransparentBackground := True; 

RVPrint.AssignSource(RichView1); 

RVPrint.FormatPages(rvdoALL); 

RVPrint.ContinuousPrint; 

// printing RichView2

RVPrint.StartAt := RVPrint.EndAt

RVPrint.AssignSource(RichView2); 

RVPrint.FormatPages(rvdoALL); 

RVPrint.ContinuousPrint; 

Printer.EndDoc;

Example 2: How to mix portrait and landscape orientations in one printing job

In this example, the same RVPrint is used to print RichView1 and RichView2 in different orientations.

Printer.BeginDoc; 

// printing RichView1 in portrait orientation

Printer.Orientation := poPortrait;

RVPrint.AssignSource(RichView1); 

RVPrint.FormatPages(rvdoALL); 

RVPrint.ContinuousPrint; 

// printing RichView2 in landscape orientation

Printer.NewPage;

Printer.Orientation := poLandscape;

RVPrint.AssignSource(RichView2); 

RVPrint.FormatPages(rvdoALL); 

RVPrint.ContinuousPrint; 

Printer.EndDoc;