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


--
Laurent Godard <[EMAIL PROTECTED]> - Ingénierie OpenOffice.org
Indesko >> http://www.indesko.com
Nuxeo CPS >> http://www.nuxeo.com - http://www.cps-project.org
Livre "Programmation OpenOffice.org", Eyrolles 2004

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to