User Tools

Site Tools


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

Table of Contents



TGIS_ControlPrintPreview.Preview(Integer; TGIS_PrintManagerAbstract; 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;
    var _scale : Double
  ) : String; overload; virtual;
// C++ Builder
public:
  virtual UnicodeString Preview(
    const int _pagenumber,
    TGIS_PrintManagerAbstract* const _printManager,
    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.
_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 and returns the page title.

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.

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

2026/07/11 00:18

Page Tools