Quantcast
Channel: Apache OpenOffice Community Forum
Viewing all articles
Browse latest Browse all 1281

Macros and UNO API • Re: UNO API (or VBScript) how retrieve XShape position relative to page when anchor diff from AT_PAGE...

$
0
0
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.

Code:

thiscomponent.graphicobjects.getbyindex(0).anchortype = com.sun.star.text.TextContentAnchorType.AT_PAGE
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.

Statistics: Posted by JeJe — Sat Nov 30, 2024 12:34 am



Viewing all articles
Browse latest Browse all 1281

Trending Articles