print TrvActionPrint

Properties   Methods

<< Click to display table of contents >>

print TrvActionPrint

Properties   Methods

TrvActionPrint is the action for "File | Print..." command.

 

Unit RichViewActions;

Syntax

TrvActionPrint = class(TrvCustomPrintAction)

hmtoggle_arrow1Hierarchy

Description

This action displays a printing dialog (TPrintDialog) and prints the document from TCustomRichViewEdit component.

This action uses settings defined in TrvActionPageSetup. If GetControlPanel.RVPrint is not assigned, the action uses the first TRVPrint component found on the form owning the TCustomRichViewEdit component. If not found, it creates a temporal TRVPrint with default property settings.

The action can print the whole document, the range of pages, or the selected fragment, depending on the user's choice.

This action is enabled only if at least one printer is installed in the system (Printer.Printers.Count>0).

See also:

TrvActionQuickPrint

TrvActionPrintPreview