PRINTER-NAME attribute
- Last Updated: January 18, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
(Windows only)
The
name of the currently selected printer in Windows platforms, and
the Unknown value (?) on other platforms.
Data type: CHARACTER
Access: Readable/Writeable
Applies to: SESSION system handle
Use this attribute to set the printer name in the default print context. The value of PRINTER-NAME is the name Windows uses to identify a printer. The specified printer must be defined in the Windows Registry. If the specified printer is not defined in the Windows Registry, the value of PRINTER-NAME is not modified. You must specify network printers in Universal Naming Convention format.
Use the GET-PRINTERS( ) method to get the list of printers currently defined in the Windows Registry.
If you use the SYSTEM-DIALOG PRINTER-SETUP statement to set the printer name, this attribute assumes the modified value.
The printer name can contain Unicode characters. See Internationalize ABL Applications for more information about Unicode.