Skip to main content
Table of Contents

TTMSFNCDataGridPrintIOOptions.FitToPage Property

When True (default), the printed columns are scaled so their total width exactly fills the printable width of the page.

API unit family: TMSFNCDataGridPrintIO Declaring type: TTMSFNCDataGridPrintIOOptions Type: Boolean

Syntax

FMX.TMSFNCDataGridPrintIO.hppPascalC++
property FitToPage: Boolean;
__property bool FitToPage = {read=FFitToPage, write=FFitToPage, default=1};

Default: True

Remarks

The scale factor is the content-area width divided by the summed width of the printed columns (including repeated fixed columns when RepeatFixedColumns is True), so a narrow grid is enlarged as well as a wide grid being reduced. Rows still flow onto as many pages as needed vertically.

Set to False to print with Scale instead; columns that do not fit then continue on additional pages.