Issue 63300 - PaperOrientation setPrinter() change PageStyle
Summary: PaperOrientation setPrinter() change PageStyle
Status: CLOSED DUPLICATE of issue 64991
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC All
: P3 Trivial
Target Milestone: ---
Assignee: Oliver Specht
QA Contact: issues@api
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2006-03-17 11:58 UTC by vbux
Modified: 2013-02-24 21:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description vbux 2006-03-17 11:58:11 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
Comment 1 stephan.wunderlich 2006-03-17 13:52:29 UTC
sw->tl: not the behaviour I'd expect when setting the Printer ;-)
Comment 2 thomas.lange 2006-06-20 14:27:22 UTC
.
Comment 3 Mathias_Bauer 2006-07-17 15:27:53 UTC
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.
Comment 4 Mathias_Bauer 2006-07-17 15:57:04 UTC
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 ***
Comment 5 ace_dent 2008-05-17 21:57:03 UTC
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
Comment 6 ace_dent 2008-05-18 00:02:05 UTC
As per previous posting: Verified -> Closed.
A Closed Issue is a Happy Issue (TM).

Regards,
Andrew