In the meantime I checked the impress document, whether it has the optional DocumentSetting named "IsPrintHandout", which it has not.
Here's a list of available properties on the impress component, iterating over xProps.getPropertySetInfo().getProperties(): TabStop: [1250] BuildId: [320$9502] RuntimeUID: [45] MapUnit: [0] CharLocale: [com.sun.star.lang.loc...@b1c5fa] BasicLibraries: [com.sun.star.uno....@efd552] ForbiddenCharacters: [com.sun.star.uno....@1abab88] AutomaticControlFocus: [0] ApplyFormDesignMode: [0] VisibleArea: [com.sun.star.awt.rectan...@18a7efd] DialogLibraries: [com.sun.star.uno....@1971afc] HasValidSignatures: [0] So supplying the property value "IsPrintHandout" to the loadComponentFromURL() won't be honored, but also does not throw an exception. Again, trying to programmatically print a presentation as a handout with two slides per handout page. ---rony On 13.07.2010 19:52, Rony G. Flatscher wrote: > Hello Ariel, > > On 13.07.2010 19:25, Ariel Constenla-Haile wrote: > >> Hello Rony, >> >> On Tuesday 13 July 2010, 13:35, Rony G. Flatscher wrote: >> >> >>> Having an impress document, I would like to programmatically print out a >>> presentation in form of handouts, with e.g. 2 slides per page. Tried the >>> English print-dialog names as print options, but to no avail. >>> >>> How can one achieve that programmatically, what steps are needed, what >>> PropertyValue can be supplied to control that ? >>> >>> >> not sure if this helps, but >> http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Drawings/Printing_Drawing_Documents#Special_Print_Settings >> >> says >> >> "The printed drawing view (drawings, notes, handout pages, outline), the >> print >> quality (color, grayscale), the page options (tile, fit to page, brochure, >> paper tray) and additional options (page name, date, time, hidden pages) can >> all be controlled. Settings describes how these settings are used." >> >> where "Settings" is >> http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Drawings/Settings >> >> it looks like printing handouts is a property of the document's settings. >> Look at the second table on that wiki page, which resumes >> http://api.openoffice.org/docs/common/ref/com/sun/star/presentation/DocumentSettings.html >> >> > Thank you very much for your hints! > > The script that I have been trying to tidy up already opened > (loadComponentFromurl) the impress component with a PropertyValue of > ("IsPrintHandout", true), which had no visual effect on the displayed > document. > > When printing that impress component I supplied PropertyValues to > XPrintable.print() like > > * ("IsPrintHandout", true) and > * ("SlidesPerPage" | "SlidesPerHandout", 2), where "2" was supplied > as a String and then as a Short to no avail. > > If any of these PropertyValues were illegal, I cannot tell as no > exception got thrown. All in all I permutated quite some time (and tried > to google something related to this) in vain, before I turned to the list. > > It is like a little (?) puzzle... > :) > > Again, thank you for your hints! (If you had any other ideas please let > me know.) > > ---rony