Hi Jimmy,
Well you're right, there must be something spooky about my
bookmarks, that's why I went looking a little further. You were
right this works just fine, BUT (who would have expected that) I do
have a section around the paragraph at first which I remove either by
currSect.dispose(); or
xText.removeTextContent(currSect);
Both work fine, afterwards I'm left with the same xml as if there
has never been any section. So I'm executing the code you
proposed ........AND it doesn't remove the silly bookmark.
So can you beat that? :)
I'll try my best ;-)
Ok now I put my last paragraph into a TextSection and execute
xSection = ThisComponent.TextSections(0)
xText = ThisComponent.getText()
xPCursor = ThisComponent.Text.CreateTextCursor
xText.removeTextContent(xSection)
while xPCursor.gotoNextParagraph(false)
wend
msgbox "last Paragraph"
xPCursor.gotoEndOfParagraph(false)
xPCursor.gotoStartOfParagraph(true)
xPCursor.setString("")
Afterwards the section and the bookmark are gone.
Are you sure that there isn't an empty paragraph behind your section ?
Regards
Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]