ActivePrinter property
Returns or sets the active printer. For the MapPoint Control, a map must be open. Read/write String.
Applies to
Objects: Application, MappointControl
Syntax
object.ActivePrinter
Parameters
Part | Description |
---|---|
object | Required. An expression that returns an Application or MappointControl object. |
Remarks
To open a map in the Control, use the NewMap method to open a map based on a template or the OpenMap method to open an existing .ptm file.
Example
Sub ShowActivePrinter()
Dim objApp As New MapPoint.Application
'Displays a message box with the name of the active printer
MsgBox ("The active printer is " & objApp.ActivePrinter)
End Sub