Control Reference > VSPrinter Control > VSPrinter Properties > Devices Property |
Returns the names of the printing devices available (zero-based vector).
val$ = [form!]VSPrinter.Devices(i As Integer)
This property returns the names of all printing devices installed on the computer. The index for this property ranges from zero to NDevices - 1.
To select a specific device, assign its name to the Device property.
For example, the following code lists all devices available and selects the first one:
' list available devices
Dim i%
For i = 0 To vp.NDevices - 1
Debug.Print vp.Devices(i)
Next
' select first device from the list
vp.Device = vp.Devices(0)
String