<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Adriam, Miklos <br>
      <br>
      indeed "insertstring" do not works when inserting text in a
      "tablecell"<br>
      we need to use "setstring" instead<br>
      <br>
      code below shows how we need to now if we insert in a cell or in a
      textFrame<br>
      <br>
       if not isEmpty(oVC.Cell)  then<br>
             oVC.cell.setstring(BMname) ' insertstring do not works here<br>
           endif<br>
          if isEmpty(oVC.TextFrame) and isEmpty(oVC.Cell) then <br>
          oVc.gotostart(true)'alle tekst geselecteerd    <br>
          oVc.text.InsertString(oVC,BMname,True)<br>
          endif<br>
      <br>
      hope it helps<br>
      <br>
      Fernand<br>
    </div>
    <blockquote cite="mid:20131209075646.GA21068@collabora.co.uk"
      type="cite">
      <pre wrap="">On Fri, Dec 06, 2013 at 04:21:16PM -0500, Adriam Delgado Rivero <a class="moz-txt-link-rfc2396E" href="mailto:adrivero@uci.cu"><adrivero@uci.cu></a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">I'm watching the example <a class="moz-txt-link-freetext" href="http://api.libreoffice.org/examples/java/Text/SWriter.java">http://api.libreoffice.org/examples/java/Text/SWriter.java</a> , and insertString method does not work. This happens only with libreoffice 4. Works on libreoffice 3.6, anyone knows passes, took almost a month with this. 
</pre>
      </blockquote>
      <pre wrap="">
Hi,

What do you mean by "does not work" exactly? What is the error message
you get?

Miklos
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
LibreOffice mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/libreoffice">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>