To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=59033
                  Issue #:|59033
                  Summary:|PageStyleName is read-only
                Component:|api
                  Version:|OOo 2.0.1
                 Platform:|All
                      URL:|
               OS/Version:|Windows, all
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|sw
              Reported by:|pitonyak





------- Additional comments from [EMAIL PROTECTED] Wed Dec  7 09:02:45 -0800 
2005 -------
According to the Developer's Guide (see
http://api.openoffice.org/docs/DevelopersGuide/Text/Text.xhtml), I can set the
PageStyleName. I quote:

The PageStyle is set at the current text cursor position. Set the property
PageStyleName to change the page style, and use the property PageDescName to
insert a new page, changing the page style.

If you attempt to set the PageStyleName, however, you are told that it is a
read-only attribute.

Tested using 2.01 release candidate 2 on Windows.

Sub SetStyle
  Dim oCurs
  Dim oVC
  oVC = ThisComponent.getCurrentController().getViewCursor()
  oCurs = oVC.getText().createTextCursorByRange(oVC)
  
  oVC.gotoEnd(False)
  oVC.PageStyleName = "First Page"
  oVC.gotoRange(oCurs, False)
  'Inspect(ocurs)
End Sub

I am able to use page description name, but this causes a page break, which is
not what I desire. Perhaps the problem is the documentation, but then I am not
certain how to set a page style.

---------------------------------------------------------------------
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]

Reply via email to