pagesetup TrvActionPageSetup

Properties   Methods   Events

<< Click to display table of contents >>

pagesetup TrvActionPageSetup

Properties   Methods   Events

TrvActionPageSetup is the action for "File | Page Setup" command.

Unit RichViewActions;

Syntax

TrvActionPageSetup = class(TrvCustomAction)

hmtoggle_arrow1Hierarchy

Description

This action displays a page setup dialog.

This action does not work with the specific editor. It defines global page properties for the application.

This action is enabled in GetControlPanel.RVPrint is assigned, and there is at least one printer is installed in the system (Printer.Printers.Count>0).

The settings are stored:

margins are stored in GetControlPanel.RVPrint properties;

headers and footers are stored in GetControlPanel.Header and Footer properties;

other properties (paper size, orientation, source) are stored in the application's printing settings (in the object returned by Printer function).