Skip to main content
Table of Contents

TTMSFNCDataGridPDFIOOptions.FitToPage Property

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

API unit family: TMSFNCDataGridPDFIO Declaring type: TTMSFNCDataGridPDFIOOptions Type: Boolean

Syntax

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

Default: True

Remarks

The scale factor is the content-area width (page minus margins) divided by the summed width of the exported 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 export with Scale instead; columns that do not fit then continue on additional pages.