Propriedade Application.AvailablePrinters (Visio)Application.AvailablePrinters Property (Visio)

Retorna uma lista de impressoras instaladas.Returns a list of installed printers. Somente leitura.Read-only.

SintaxeSyntax

expression.expression. AvailablePrinters

expression Uma variável que representa um objeto Application.expression A variable that represents an Application object.

Valor de retornoReturn value

String()String()

ExemploExample

Os seguintes Microsoft Visual Basic for Applications (VBA) macro mostra como usar a propriedade AvailablePrinters para obter uma lista de impressoras disponíveis.The following Microsoft Visual Basic for Applications (VBA) macro shows how to use the AvailablePrinters property to get a list of available printers.

Public Sub AvailablePrinters_example() 
 
 Dim aStrPrinters() As String 
 Dim strPrinter As Variant 
 
 aStrPrinters = Application.AvailablePrinters 
 
 For Each strPrinter In aStrPrinters 
 
 Debug.Print strPrinter 
 
 Next 
 
End Sub