Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Adriam, Miklos

indeed "insertstring" do not works when inserting text in a "tablecell"
we need to use "setstring" instead

code below shows how we need to now if we insert in a cell or in a textFrame

 if not isEmpty(oVC.Cell)  then
       oVC.cell.setstring(BMname) ' insertstring do not works here
     endif
    if isEmpty(oVC.TextFrame) and isEmpty(oVC.Cell) then
    oVc.gotostart(true)'alle tekst geselecteerd
    oVc.text.InsertString(oVC,BMname,True)
    endif

hope it helps

Fernand
On Fri, Dec 06, 2013 at 04:21:16PM -0500, Adriam Delgado Rivero <adrivero@uci.cu> wrote:
I'm watching the example http://api.libreoffice.org/examples/java/Text/SWriter.java , 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.
Hi,

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

Miklos


_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.