User Tools

Site Tools


api:dk11:delphi:fmx.giscontrolprintpreview.tgis_controlprintpreview.preview_integer_tgis_printmanagerabstract_string_double

Table of Contents



TGIS_ControlPrintPreview.Preview(Integer; TGIS_PrintManagerAbstract; String; Double) method

DK for Delphi | FMX.GisControlPrintPreview.TGIS_ControlPrintPreview.Preview | Overloads | Constructors | Methods | Properties

Generates a print preview of the selected page.

Available also on: ActiveX.

Syntax

// Delphi
public
  function Preview(
    const _pagenumber : Integer;
    const _printManager : TGIS_PrintManagerAbstract;
    const _customPage : String;
    var _scale : Double
  ) : String; overload; virtual;
// C++ Builder
public:
  virtual UnicodeString Preview(
    const int _pagenumber,
    TGIS_PrintManagerAbstract* const _printManager,
    const UnicodeString _customPage,
    double &_scale
  ) /* overload */;

Parameters

Name Type Description
_pagenumber Integer Page number to preview, where 1 is the first page.
_printManager TGIS_PrintManagerAbstract Print manager providing page layout and rendering settings.
_customPage String Custom page orientation name, typically "Landscape" or "Portrait".
_scale Double Scale factor used during printing and preview generation. If _scale = 0, the scale is calculated automatically to fit the printed extent.

Result

Type Description
String Title string describing the generated preview page.

Remarks

PURPOSE: Generates a print preview for the requested page using the specified custom page orientation.

BEHAVIOR: Uses 1-based page numbering, where page 1 is the first page. When _scale = 0, the scale factor is calculated automatically to fit the page extent. The _customPage value controls the requested page orientation for preview generation.

CONSTRAINTS: Printing fails when GIS_Viewer.InPaint is set to True.

2026/07/11 00:18

Page Tools