PrinterAlias Property

Syntax

printerAlias = Object.PrinterAlias
Type = string, read only

Description

PrinterAlias is used along with PrinterName, PrinterCount, and PrinterPort properties to allow you to prompt your users for the target-configured printer to whom they wish to print. Essentially, these properties expose the list of configured printers that was set up in the Loftware label design mode. Printer Alias is a descriptive name for a printer that is assigned when in the device configuration menu of label design mode (same dialog box where you specify a port/spool/IP address).

Note: The PrinterPath or the ClientIniPath property MUST be set in order to obtain the printer information. The Printer properties only reflect the printers that have been previously configured at the LPS. They are Read Only!

Example

'this example populates a list box with printer aliases. If the
'printer alias does not exist, it uses the default printer name.

Public Sub populatePrinterList()
Dim i As Integer
If ClientX1.PrinterCount = 0 Then
    MsgBox "You have not configured any printers in Loftware yet."
    Exit Sub
End If
For i = 1 To ClientX1.PrinterCount
   If ClientX1.PrinterAlias(i) = "" Then
      frmFront.lstPrinters.AddItem ClientX1.printerName(i)
   Else
      frmFront.lstPrinters.AddItem ClientX1.PrinterAlias(i)
   End If
Next i
End Sub

See also:

PrinterName

PrinterCount