PaperSize property
Returns or sets the size of the paper as it relates to printing. See the GeoPaperSize values topic for values and their descriptions. Read/write GeoPaperSize.
Applies to
Objects: PageSetup
Syntax
object.PaperSize
Parameters
Part | Description |
---|---|
object | Required. An expression that returns a PageSetup object. |
Remarks
Results are dependent on the printer and printer drivers installed on the user's machine.
Example
Sub ChangePaperSize()
Dim objApp As New MapPoint.Application
'Set up application
objApp.Visible = True
objApp.UserControl = True
'Change paper size
objApp.ActiveMap.PageSetup.PaperSize = geoPaperA4
objApp.ActiveMap.PrintOut PrintArea:=geoPrintMap
End Sub