xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

GetDefaultPrinter()

Retrieves the name of a computer's default printer.

Syntax

GetDefaultPrinter() --> cPrinterName

Return

The function returns a character string holding the name of the default printer.

Description

This function serves informational purposes. It retrieves the name of the printer selected as default printer for the current user in the system configuration.

Info

See also:GetPrinters(), PrintFileRaw(), PrinterExists(), PrinterPortToName()
Category: Printer functions , xHarbour extensions
Source:rtl\tprinter.c
LIB:xhb.lib
DLL:xhbdll.dll

Example

   PROCEDURE Main()
      LOCAL cPrinter := GetDefaultPrinter()
          ? cPrinter
   RETURN

Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe