pagesetup TrvActionPageSetup

Properties   Events

<< Click to display table of contents >>

pagesetup TrvActionPageSetup

Properties   Events

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

Unit RichViewActions;


TrvActionPageSetup = class(TrvCustomAction)



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).