xHarbour Reference Documentation > Function Reference |
Retrieves the name of a computer's default printer.
GetDefaultPrinter() --> cPrinterName
The function returns a character string holding the name of the default printer.
This function serves informational purposes. It retrieves the name of the printer selected as default printer for the current user in the system configuration.
See also: | GetPrinters(), PrintFileRaw(), PrinterExists(), PrinterPortToName() |
Category: | Printer functions , xHarbour extensions |
Source: | rtl\tprinter.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
PROCEDURE Main() LOCAL cPrinter := GetDefaultPrinter() ? cPrinter RETURN
http://www.xHarbour.com