incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fabian <...@netempire.de>
Subject Re: [EXT] Printing without empty pages
Date Fri, 25 May 2012 07:46:23 GMT
Hi Ariel,

thanks big time! 
I was able to get it to work with java. If you got this only from the API then I should try
to become friends with it again ;-)

best,
Fabian



On May 24, 2012, at 4:54 PM, Ariel Constenla-Haile wrote:

> Sub Main
>    Dim oDoc as Object
>    oDoc = ThisComponent
> 
>    Dim oDispatchProvider as Object
>    Dim oDispatchHelper as Object
>    oDispatchProvider = oDoc.getCurrentController().getFrame()
>    oDispatchHelper = CreateUnoService("com.sun.star.frame.DispatchHelper")
> 
>    '===================================================================
>    ' Document Settings
> 
>    'com.sun.star.text.DocumentSettings
>    'com.sun.star.text.PrintSettings    
>    'com.sun.star.text.PrintPreviewSettings
> 
>    Dim oDocumentSettings as Object
>    oDocumentSettings = oDoc.createInstance("com.sun.star.document.Settings")
>    oDocumentSettings.setPropertyValue("PrintEmptyPages", False)
> 
>    oDispatchHelper.executeDispatch(oDispatchProvider,".uno:Print","_self",0,oArguments)
> End Sub


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message