com.sun.star.beans.PropertyValue[] printerDesc = new com.sun.star.beans.PropertyValue[1]; printerDesc[0] = new com.sun.star.beans.PropertyValue(); printerDesc[0].Name = "Name"; printerDesc[0].Value = ""; try { xPrintable.setPrinter(printerDesc); } catch (com.sun.star.lang.IllegalArgumentException ex2) { ex2.printStackTrace(); }