How can I get the absolute position of a text in a SXW
oDoc = ThisComponent
' get the Text service of the document
oText = Odoc.text
' create an instance of a graphic object using the document
service factory
' get the current cursor position in the GUI and create a text
cursor from it
oViewCursor = oDoc.getCurrentController().getViewCursor()
oCursor = oText.createTextCursorByRange(oViewCursor)
Hpos = oViewCursor.getPosition().X
Vpos = oViewCursor.getPosition().Y - (29700 * (iPagenr-1)) ' >> gives
the position on a partical page (29700 = hight of the page,)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]