Apache OpenOffice (AOO) Bugzilla – Issue 63300
PaperOrientation setPrinter() change PageStyle
Last modified: 2013-02-24 21:09:48 UTC
Then i set PaperOrientation property from macro (i use setPrinter()), PaperOrientation in all PageStyles changes too. For example: Page orientation become landscape in printer settings and page styles. Sub LandsCape () Dim oDoc As Object Dim oPrinter As Object Dim Printeroptions(0) as new com.sun.star.beans.PropertyValue Dim i As integer dim args1(1) as new com.sun.star.beans.PropertyValue oDoc = thisComponent oPrinter = odoc.getPrinter () for i = 0 To Ubound (oPrinter ()) If oPrinter (i).Name = "PaperOrientation" Then oPrinter (i).Value = com.sun.star.view.PaperOrientation.LANDSCAPE End If Next i oDoc.setPrinter (oPrinter ()) oDoc.print (Array()) End Sub
sw->tl: not the behaviour I'd expect when setting the Printer ;-)
.
Oliver, this behavior seems to be intentional, at least the code was added intentionally roughly 10 years ago. :-) We need to decide wether this is a bug or a feature.
The more I think about it I think this is a duplicate to issue 64991. See there for more information. *** This issue has been marked as a duplicate of 64991 ***
The Issue you raised has been marked as 'Resolved' and not updated within the last 1 year+. I am therefore setting this issue to 'Verified' as the first step towards Closing it. If you feel this is incorrect, please re-open the issue and add any comments. Many thanks, Andrew Cleaning-up and Closing old Issues ~ The Grand Bug Squash, pre v3 ~ http://marketing.openoffice.org/3.0/announcementbeta.html
As per previous posting: Verified -> Closed. A Closed Issue is a Happy Issue (TM). Regards, Andrew