Hi Marc,

Marc Santhoff escribió:
Am Freitag, den 25.01.2008, 19:31 -0300 schrieb Ariel Constenla-Haile:
Hi Marc,


Marc Santhoff escribió:
[...]
Boris is trying to access a bookmark inserted inside a TextTable's
cell (if I understood well)

' create a cursor at the bookmark
csr = oDoc.Text.createTextCursor()
csr.gotoRange(oBookmark.getAnchor(), FALSE)
this won't work,
...

It does, it's tested.

well, that's a little trick you've done ;-)

As long as the bookmark spans over the complete table

in this case, the bookmark is NOT inside a (table's) cell, and "spans over the complete table" means the bookmarks starts at least one paragraph over the table and finish one paragraph behind the table...

(which is how I did it),

but Boris (if I understood) is trying to access a bookmark inside a (table's) cell, am I wrong Boris?

there is no problem. If the table is after or below the
bookmark another, similar strategy will do.

This is also questionable. If the bookmark is only above or below the table without spanning, you have no way to create a text cursor at the bookmark anchor and then send it inside a cell's text, because text objects are different. In this case a view cursor will work (if the bookmark is above the table move it down one line, etc...)

Regards
Ariel.


--
Ariel Constenla-Haile
La Plata, Argentina

[EMAIL PROTECTED]
[EMAIL PROTECTED]

http://www.ArielConstenlaHaile.com.ar/ooo/



"Aus der Kriegsschule des Lebens
                - Was mich nicht umbringt,
        macht mich härter."
                Nietzsche Götzendämmerung, Sprüche und Pfeile, 8.

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

Reply via email to