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

Reply via email to