Bonjour,
Merci pour vos essais.
Je pars d'un document Writer qui ne contient que quelques paragraphes 
vides, curseur au milieu (~3ème paragraphe).
Je suis sous LO 6.2.7.1 / Win 8.1 (mon portable).
Ah ben je viens d'essayer en 6.2.6 sous Win7 (bureau) ça fonctionne !!
Bon je cherche autrement alors...
Merci
a+
Le 19/10/2019 à 08:06, Stéphane Santon a écrit :
Bonjour,
Je ne trouve pas l'erreur sur ce simple script
sub es3
     Dim loComp, loText, loViewCursor, loCursor, loTable, loCellule
     loComp    = thisComponent
     loText    = loComp.getText
     loViewCursor = loComp.getCurrentController.getViewCursor
     loTable = loComp.createInstance("com.sun.star.text.TextTable")
     loTable.initialize( 1, 6)
     loText.insertTextContent( loViewCursor, loTable, false)
     loCursor = loTable.createCursorByCellName( "A1")
end sub
sur la dernière ligne, il me dit (Erreur d'exécution BASIC)
"Valeur de propriété incorrecte"...
Pourquoi ?
La table est bien créée dans le doc.
Dans XRay la propriété existe bien.
--
Envoyez un mail à users+unsubscribe@fr.libreoffice.org pour vous désinscrire
Les archives de la liste sont disponibles à https://listarchives.libreoffice.org/fr/users/
Privacy Policy: https://www.documentfoundation.org/privacy
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.