To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=63169 Issue #:|63169 Summary:|Selecting printer in linux using Java/UNO not |possible Component:|api Version:|OOo 2.0.1 Platform:|All URL:|http://api.openoffice.org/servlets/ReadMsg?list=dev&m |sgNo=14706 OS/Version:|Linux Status:|UNCONFIRMED Status whiteboard:| Keywords:| Resolution:| Issue type:|DEFECT Priority:|P3 Subcomponent:|code Assigned to:|sw Reported by:|tobiaskrais
------- Additional comments from [EMAIL PROTECTED] Tue Mar 14 07:09:03 -0800 2006 ------- I try to select a printer using this code in Java: -----%<----- XPrintable xPrintable = (XPrintable) UnoRuntime.queryInterface(XPrintable.class, xDoc); PropertyValue[] printerDesc = new PropertyValue[1]; printerDesc[0] = new PropertyValue(); printerDesc[0].Name = "Name"; printerDesc[0].Value = "myPrinterName"; xPrintable.setPrinter(printerDesc); xPrintable.print(printOpts); -----%<----- This code works for Windows, Linux (only for printers that are created with spadmin). It does not work for CUPS native printers in Linux. The printout is always directed to the default printer. If I want to get the name of this printer, "Generic Printer" is returned. for questions or a sample application contact me: [EMAIL PROTECTED] --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]