Document Object

 

The Document object is the base object for document objects (map, worksheet). Document objects are not directly usable; they only serve as a base object that defines common document functionality. All the properties and methods below are available for any object derived from the document object, such as PlotDocument or WksDocument.

 

Properties

Application

FullName

Index

Name*

Parent

Path

Saved

Type

Windows

 

Methods

Activate

Close

NewWindow

Save

SaveAs

 

*default property

 

Example

The following script demonstrates how the Document object is created.

 

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 Document object in MapViewer and

'assigns it to the variable named "Plot"

 Set Plot = mvApp.Documents.Add(mvDocPlot)

End Sub