Closed Bug 1170975 Opened 10 years ago Closed 10 years ago

@mozilla.org/gfx/printerenumerator;1 is undefined

Categories

(Core :: Printing: Setup, defect)

36 Branch
Unspecified
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: david.chow, Unassigned)

Details

User Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; InfoPath.3; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729) Steps to reproduce: While I am trying to get the printer name list by the following codes, I got error from the console. However, the same code is working in windows and linux <code> Components.classes["@mozilla.org/gfx/printerenumerator;1"] </code> Actual results: @mozilla.org/gfx/printerenumerator;1 is undefined Expected results: Should be able to get the list of printer name
OS: Unspecified → Mac OS X
I don't think this interface is supported on mac. mconley you've been touching printing recently, do you know?
Component: XULRunner → Printing: Setup
Flags: needinfo?(mconley)
Product: Toolkit → Core
(In reply to Benjamin Smedberg [:bsmedberg] from comment #1) > I don't think this interface is supported on mac. mconley you've been > touching printing recently, do you know? Correct - there is no nsIPrinterEnumerator implementation for the OS X widget backend.
Flags: needinfo?(mconley)
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
So, there is no alternative solution for getting the printer name list?
You need to log in before you can comment on or make changes to this bug.