ComponentOne VSView 8.0
Devices Property

Returns the names of the printing devices available (zero-based vector).

Syntax

val$ = [form!]VSPrinter.Devices(i As Integer)

Remarks

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)

Data Type

String

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback