I use vb.net to modify an AOO textdocument. But I get alwas an extra line at the end of my replaced textpart
Code: Select all
oFound = oo.findFirst(oSearch)
oFound.setString("")
oText = oFound.getText()
oText.insertTextContent(oFound, oGraph, True)
fcFindInsertGraph = oo
but afterwards there is an extra line after the Picture.
how can I remove this extra line ?
I tried to get the xTextRange at the end (createTextcursorbyrange(oFound.getEnd())
use this as cursor and expand the cursr just by one char and replace this with and empty string. But this deletes the next paragraph too !
What can I do ?