Hi,
Boris Ratak wrote:
Hi,



My problem is that this method doesn't work for a bookmark that is INSIDE a textTable Cell, because I can't use a TextCursor inside a Cell (the gotoRange(anchor) bugs). Cell cursors are not complex enough to handle ranges inside a cell and if I enumerate the cell content, I don't find the bookmark anymore.

So, has anyone an idea ? Either a "insert text inside bookmark even in a cell" or a "retrieve bookmark position in a cell string so my previous method works" method would really help me a lot. By the way, the cell can already have some text inside, so I can't simply take the whole cell content.
instead of using
          curseur = thiscomponent.Text.createTextCursor
you should use
Ancre = thiscomponent.Bookmarks.getByName("myBookmark").getAnchor
          curseur =  Ancre.getText.createTextCursor
Then this will work also in table cells, footers, headers, ...

I'd also think ( didn't check it) that you can drop the line
   curseur.gotoRange(curseur_start, True)
because if you call setString at the cursor it already selects the inserted string.

Regards,
Oliver


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

Reply via email to