PageSetup Object

 

The PageSetup object contains all the parameters in the map window Page Setup dialog.

 

Properties

Application

Height

Orientation

Parent

Width

 

Example

The following script demonstrates how the PageSetup object is used.

 

Sub Main

'Declares mvApp as an object

 Dim mvApp As Object

 

'Creates an instance of the MapViewer Application

'object and assigns it to the variable named "mvApp"

 Set mvApp = CreateObject("MapViewer.Application")

 

'Makes MapViewer visible

 mvApp.Visible = True

 

'Declares Plot as an object

 Dim Plot As Object

 

'Creates a map document in MapViewer and assigns

'it to the variable named "Plot"

 Set Plot = mvApp.Documents.Add(mvDocPlot)

 

'Declares PageSetup as an object

 Dim PageSetup As Object

 

'Assigns the map document page setup to the

'variable named "PageSetup"

 Set PageSetup = Plot.PageSetup

End Sub