If you provide a stripped down sample document to illustrate the problem where the jump to the top of the page occurs.
I test this line on a simple one page document and its fine for me.
You could also try the macro recorder version of this operation, which is also fine for me.
Edit: and also another or the same document to illustrate the getposition value not being what's expected.
I test this line on a simple one page document and its fine for me.
Code:
thiscomponent.graphicobjects.getbyindex(0).anchortype = com.sun.star.text.TextContentAnchorType.AT_PAGE
Edit: and also another or the same document to illustrate the getposition value not being what's expected.
Statistics: Posted by JeJe — Sat Nov 30, 2024 12:34 am