a_layoutprint TsrvActionLayoutPrint

Properties   Events  | Actions overview

<< Click to display table of contents >>

a_layoutprint TsrvActionLayoutPrint

Properties   Events  | Actions overview

TsrvActionLayoutPrint switches TSRichViewEdit control to a "print layout".

Unit SRVActions;

Syntax

TsrvActionLayoutPrint = class(TsrvActionCustomLayout)

hmtoggle_arrow1Hierarchy

Description

In this mode, a document is shown using the target editor's page size and orientation (defined in PageProperty). Pages are arranged in rows and columns (no more than the target editor's PagePosProperty.MaxPageColCount pages in a row), scrolled vertically.

The main changes made by this action for TSRichViewEdit control:

Property

Assigned value

PageProperty.PageViewMode

True

PageProperty.AutoWidth

False

ReadModeProperty.Active

False

This action also changes the following properties:

Property

Assigned value

Color

Color

PageProperty.BorderPen.Style

psSolid

PagePosProperty.HPadding

HPadding

BackgroundProperty.Visible

True

ViewProperty.ShowScrollHint

True

PagePosProperty.AlignPageH

srvaphCenter

PagePosProperty.AlignPageV

srvaphCenter

PageProperty.HeaderVisible

HeaderVisible

PageProperty.FooterVisible

FooterVisible

PagePosProperty.HiddenDistances

excludes [srvppdHPadding, srvppdVPadding, srvppdPageHSpacing]

After the layout is changed, TRVAControlPanel.OnViewChanged event occurs.

See also:

TsrvActionLayoutWeb

TsrvActionLayoutDraft

TsrvActionLayoutSideToSide

TsrvActionLayoutRead