Remove extra line after insertTextContent

Java, C++, C#, Delphi, ??? - Using the UNO bridges

Remove extra line after insertTextContent

Postby elchstern » Wed Dec 18, 2013 6:46 pm


I use to modify an AOO textdocument. But I get alwas an extra line at the end of my replaced textpart

Code: Select all   Expand viewCollapse view
        oFound = oo.findFirst(oSearch)

        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
Posts: 2
Joined: Tue Dec 17, 2013 11:18 pm

Return to External Programs

Who is online

Users browsing this forum: No registered users and 6 guests