User Tools

Site Tools


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

Table of Contents



TGIS_ControlPrintPreview.previewInternal method

DK for Delphi | FMX.GisControlPrintPreview.TGIS_ControlPrintPreview.previewInternal | Constructors | Methods | Properties

Internal method for generating a print preview of the selected page.

Available also on: .NET WinForms.

Syntax

// Delphi
protected
  function previewInternal(
    const _pageNumber : Integer;
    const _printManager : TGIS_PrintManagerAbstract;
    const _printer : TGIS_PrinterPreview;
    var _scale : Double
  ) : String;
// C++ Builder
protected:
  UnicodeString previewInternal(
    const int _pageNumber,
    TGIS_PrintManagerAbstract* const _printManager,
    TGIS_PrinterPreview* const _printer,
    double &_scale
  );

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.
_printer TGIS_PrinterPreview Virtual printer used to render the preview page.
_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 the preview image and title for a specific page using the supplied print manager and virtual printer.

BEHAVIOR: Uses 1-based page numbering, where page 1 is the first page. When _scale = 0, the method calculates a scale factor automatically to fit the page extent.

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

2026/07/11 00:18

Page Tools