[Libreoffice-bugs] [Bug 108048] New: Change numbering pages with new style not working when set from within the macro

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed May 24 06:47:23 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=108048

            Bug ID: 108048
           Summary: Change numbering pages with new style not working when
                    set from within the macro
           Product: LibreOffice
           Version: 5.3.3.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: nvhorst at gmail.com

My document have some sections that must start on odd pages with new page
numbering.
It is than need to insert page break with new page style staring on the right
or left page and change page numbering to "1".
You can do this from menu: menu>insert>manual page break, choose new pagestyle
and tick the box to change page number to "1".
BUT
it is impossible to get the same result when executing above steps in recorded
macro because page numbering is continued despite setting PageNumber value.

Below is the code "tools>macro>record>"


dim args5(2) as new com.sun.star.beans.PropertyValue
args5(0).Name = "Kind"
args5(0).Value = 3
args5(1).Name = "TemplateName"
args5(1).Value = "Left Page"
args5(2).Name = "PageNumber"
args5(2).Value = 1 // THIS VALUE WILL NOT BE SET!
dispatcher.executeDispatch(document, ".uno:InsertBreak", "", 0, args5())

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170524/6151b9f6/attachment.html>


More information about the Libreoffice-bugs mailing list