Remove extra line after insertTextContent

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
elchstern
Posts: 2
Joined: Tue Dec 17, 2013 11:18 pm

Remove extra line after insertTextContent

Post by elchstern »

Hi

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
replace the textmark with the oGraph (JPG Picture)

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 ?
OpenOffice 3.1 on Windows Vista
Post Reply