getPrinterNames()
The function returns a list of available printers.
Synopsis
dyn_string getPrinterNames(dyn_string &printerName, dyn_string
&shareName);
Parameters
Parameter | Description |
---|---|
printerName | Definition or name of the printer |
shareName | Optional parameter. Release name of the printer |
Return value
Printer name(s).
Description
The function writes printer names to the dyn_string variable printerName
and the
release names to the dyn_string variable shareName
and returns the printer names
also as return value. Therefore, you can leave out the parameters.
Wichtig: Under Linux the command
lpstat
has to be available on the system.main() { dyn_string name, share, p; p = getPrinterNames(name, share); DebugN(p); DebugN(name); DebugN(share); }
Assignment
Graphics
Availability
UI