Linux Mac OSX Windows

Implemented by


  
[scriptable, uuid(a6cf9128-15b3-11d2-932e-00805f8add32)]
interface nsIPrinterEnumerator : nsISupports

Attributes

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

Methods


        
void displayPropertiesDlg(in wstring aPrinter, in nsIPrintSettings aPrintSettings)
 Returns an array of the names of all installed printers.

 @param  aCount     returns number of printers returned
 @param  aResult    returns array of names
 @return void
void enumeratePrinters(out PRUint32 aCount, [array, size_is(aCount), retval] out wstring aResult)
 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
void initPrintSettingsFromPrinter(in wstring aPrinterName, in nsIPrintSettings aPrintSettings)