To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=63300 Issue #:|63300 Summary:|PaperOrientation setPrinter() change PageStyle Component:|api Version:|OOo 2.0.2 Platform:|PC URL:| OS/Version:|All Status:|UNCONFIRMED Status whiteboard:| Keywords:| Resolution:| Issue type:|DEFECT Priority:|P3 Subcomponent:|code Assigned to:|sw Reported by:|vbux
------- Additional comments from [EMAIL PROTECTED] Fri Mar 17 03:58:11 -0800 2006 ------- 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 --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]