To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=108422
User jsc changed the following: What |Old value |New value ================================================================================ OS/Version|All |Mac OS X -------------------------------------------------------------------------------- ------- Additional comments from j...@openoffice.org Wed Jan 20 14:12:21 +0000 2010 ------- try attached jar (on snow leopard) export UNO_PATH=/<localpath>/OpenOffice.org.app/Contents/MacOS java -d32 -jar -jar ReproduceBug108422.jar <printername> if no printer is given as argument, the office default is used (correct?). Anyway if a printername is given then XPrintable.setPrinter(...) is called before printing. Used code: <bootstrap, create new doc, insert i line text> ... XPrintable xPrintable = (XPrintable)UnoRuntime.queryInterface(XPrintable.class, xTextDocument); if (args.length > 0) { PropertyValue[] printerDesc = new PropertyValue[1]; printerDesc[0] = new PropertyValue(); printerDesc[0].Name = "Name"; printerDesc[0].Value = args[0]; xPrintable.setPrinter(printerDesc); } PropertyValue[] printOpts = new PropertyValue[1]; printOpts[0] = new PropertyValue(); printOpts[0].Name = "Pages"; printOpts[0].Value = "1"; xPrintable.print(printOpts); --------------------------------------------------------------------- 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: issues-unsubscr...@api.openoffice.org For additional commands, e-mail: issues-h...@api.openoffice.org --------------------------------------------------------------------- To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org For additional commands, e-mail: allbugs-h...@openoffice.org