Yes ! Thank you Laurent, the new cursor is located just after the image.
Thus, I can use "gotoPreviousParagraph" to go to the paragraph just
before the image.
Thanks again
Benoit.
Laurent Godard wrote:
Hi Benoit
When I create a new TextCursor, like this:
oCursor = oSelectedObject.getAnchor().Text.createTextCursor()
The cursor is positioned at the document's start and I don't know how
I can move this cursor to the paragraph before the selected image.
Does somebody have an idea ?
did you try a createTextCursorByRange(oSelectedObject.getAnchor()) ?
or something approaching
Laurent
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]