Upon further inspection, the following docuemnt.Settings are in effect
*after* printing:

    ApplyUserData: [1]
    BitmapTableURL:
    
[file:///D:/Dokumente%20und%20Einstellungen/Administrator/Anwendungsdaten/OpenOffice.org/3/user/config/standard.sob]
    CharacterCompressionType: [0]
    ColorTableURL:
    
[file:///D:/Dokumente%20und%20Einstellungen/Administrator/Anwendungsdaten/OpenOffice.org/3/user/config/standard.soc]
    DashTableURL:
    
[file:///D:/Dokumente%20und%20Einstellungen/Administrator/Anwendungsdaten/OpenOffice.org/3/user/config/standard.sod]
    DefaultTabStop: [1250]
    ForbiddenCharacters: [com.sun.star.uno....@cfec48]
    GradientTableURL:
    
[file:///D:/Dokumente%20und%20Einstellungen/Administrator/Anwendungsdaten/OpenOffice.org/3/user/config/standard.sog]
    HandoutsHorizontal: [1]
    HatchTableURL:
    
[file:///D:/Dokumente%20und%20Einstellungen/Administrator/Anwendungsdaten/OpenOffice.org/3/user/config/standard.soh]
    IsKernAsianPunctuation: [0]
    IsPrintBooklet: [0]
    IsPrintBookletBack: [1]
    IsPrintBookletFront: [1]
    IsPrintDate: [0]
    IsPrintDrawing: [1]
    *IsPrintFitPage: [1]*
    *IsPrintHandout: [0]*
    IsPrintHiddenPages: [1]
    IsPrintNotes: [0]
    IsPrintOutline: [0]
    IsPrintPageName: [0]
    IsPrintTilePage: [0]
    IsPrintTime: [0]
    LineEndTableURL:
    
[file:///D:/Dokumente%20und%20Einstellungen/Administrator/Anwendungsdaten/OpenOffice.org/3/user/config/standard.soe]
    LoadReadonly: [0]
    PageNumberFormat: [4]
    ParagraphSummation: [0]
    PrintQuality: [0]
    PrinterIndependentLayout: [2]
    PrinterName: [Adobe PDF]
    PrinterSetup: [...@e80842]
    SaveVersionOnClose: [0]
    SlidesPerHandout: [6]
    UpdateFromTemplate: [1]

Immediately before printing a getPropertyValue(IsPrintHandout) returns
true (1), after printing it returns false (0). The property
"IsPrintFitPage" is set to false before printing, and to true afterards.

So in the process of executing XPrintable.print(props) the properties
"IsPrintFitPage" and "IsPrintHandout" get set to their opposite boolean
value.

---rony


On 13.07.2010 23:43, Rony G. Flatscher wrote:
> Hi Ariel,
>
> On 13.07.2010 22:19, Ariel Constenla-Haile wrote:
>   
>> Hello Rony,
>>
>> On Tuesday 13 July 2010, 14:52, Rony G. Flatscher wrote:
>>   
>>     
>>> 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.
>>>     
>>>       
>> you were in the wrong way: these settings are not in the document's main 
>> settings (querying css.beans.XPropertySet on the document's model), not in 
>> the 
>> printer settings, not in the MediaDescriptor when loading the document.
>>
>> As explained in 
>> http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Drawings/Settings
>> you must instantiate the com.sun.star.document.Settings at the document's 
>> factory.
>>   
>>     
> Totally overlooked that one!
>
> And thanks to your nice example I was able to duplicate your code into
> my sample, thank you *very much* again! Incredible, how you researched
> and were able to come up with an example demonstrating the necessary
> code to define and set those properties!
>
> Unfortunately, in the end I was not able to achieve the desired result:
> printing a presentation as handouts and having six slides on one page.
> It stiill prints each slide in full on each page...
> :(
>
> Regards,
>
> ---rony
>   

Reply via email to