I can set the paper orientation of the printer no problem (using the XPrintable), which has the effect that when the printer dialog pops up landscape is selected.
But it still prints portrait unless the page is set to landscape (ie format - page - orientation). I have seen this behaviour in Word and OpenOffice. So now is the question how do I set the page property for the orientation, it looks like it would a style property, but I can't find any documenation. The closest thing I found was that the DrawPage has an orientation but when I try and get the XPropertySet of the draw page, it returns null. Does anyone have any ideas? thanks, have a good weekend. ### code snippet below //Access the XDrawPageSupplier interface of the document XDrawPageSupplier xDrawPageSupplier = ( XDrawPageSupplier ) UnoRuntime.queryInterface( XDrawPageSupplier.class,this.connection.getTextDocument() ); //Get the XShapes interface of the draw page XDrawPage xDrawPage = xDrawPageSupplier.getDrawPage(); // This return null? XPropertySet xPropertySet = OpenOfficeRenderingUtils.getPropertySet( xDrawPage ); __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
