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.
// 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 );
| 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. |
| Type | Description |
|---|---|
| String | Title string describing the generated preview page. |
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.