nsIPrinterEnumerator

IID:a6cf9128-15b3-11d2-932e-00805f8add32
Inherits From:nsISupports

This interface is implemented by the following components:


Properties

readonly PRUnichar* defaultPrinterName

The name of the default printer This name must be in the list of printer names returned by "availablePrinters"


Methods

void displayPropertiesDlg ( PRUnichar* printer , nsIPrintSettings printSettings ) void enumeratePrinters ( out PRUint32 count , out arrayof PRUnichar* result ) void initPrintSettingsFromPrinter ( PRUnichar* printerName , nsIPrintSettings printSettings )

void displayPropertiesDlg ( PRUnichar* printer , nsIPrintSettings printSettings )

Arguments:
printer
printSettings

void enumeratePrinters ( out PRUint32 count , out arrayof PRUnichar* result )

Returns an array of the names of all installed printers.

Arguments:
count: returns number of printers returned
result: returns array of names
Returns:
void

void initPrintSettingsFromPrinter ( PRUnichar* printerName , nsIPrintSettings printSettings )

Initializes certain settings from the native printer into the PrintSettings These settings include, but are not limited to: Page Orientation Page Size Number of Copies

Arguments:
printerName
printSettings

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com