User Tools

Site Tools


api:dk11:net:tatukgis.ndk.winforms.tgis_controlprintpreview.preview_integer_printdocument_tgis_printmanagerabstract_string_double

Table of Contents

TGIS_ControlPrintPreview.Preview(int, PrintDocument, TGIS_PrintManagerAbstract, string, double) method

Syntax

// C#
public virtual string Preview(
  int _pageNumber,
  PrintDocument _printer,
  TGIS_PrintManagerAbstract _printManager,
  string _customPage,
  ref double _scale
);
' VisualBasic
Public Overridable Function Preview(
  ByVal _pageNumber As Integer,
  ByVal _printer As PrintDocument,
  ByVal _printManager As TGIS_PrintManagerAbstract,
  ByVal _customPage As String,
  ByRef _scale As Double
) As String
// Oxygene
public
  function Preview(
    _pageNumber : Integer;
    _printer : PrintDocument;
    _printManager : TGIS_PrintManagerAbstract;
    _customPage : String;
    var _scale : Double
  ) : String; virtual;

Parameters

Name Type Description
_pageNumber int
Integer
page number to be previewed (1 means the first page)
_printer PrintDocument printer object
_printManager TGIS_PrintManagerAbstract print manager object or nil
_customPage string
String
default page orientation: "Landscape" or "Portrait"
_scale double
Double
scale factor used during print (for printing scale etc); if scale=0 then scale will be calculated automatically to fit the _extent

Result

Type Description
string
String
title string

Remarks

Printing fails when GIS_Viewer.InPaint is set to True.

2021/12/27 16:11

Page Tools