Hi Adriam,<br><br>I think you are on the correct mailing list to get your answer.<br><br>However, this is an English-writing mailing list.<br>Writing in any other language than English will more than likely bring no answer.<br>
<br>Jean-Noël<br><br>PS: I do not have the answer to your question.<br><br><br><br><div class="gmail_quote">2013/3/7 Adriam Delgado Rivero <span dir="ltr"><<a href="mailto:adrivero@estudiantes.uci.cu" target="_blank">adrivero@estudiantes.uci.cu</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:arial,helvetica,sans-serif"><br><br>Utilizando UNO <span><span>API</span></span> para java y cargo una plantilla que contiene una tabla ....<br>
<br>Intento copiar dicha tabla en la siguiente hoja (propiedades <span>también</span>) para crear una nueva.... y no encuentro como, este es el código donde obtengo la tabla y sus propiedades.<br> <br>PD. He escrito muchas veces a <a href="mailto:users@global.libreoffice.org" target="_blank">users@global.libreoffice.org</a> pero nadie responde...<br>
Saludos<br><div style="font-size:12pt;font-style:normal;font-family:Helvetica,Arial,sans-serif;text-decoration:none;font-weight:normal"><div style="font-size:12pt;font-family:arial,helvetica,sans-serif"><div style="font-size:12pt;font-style:normal;font-family:Helvetica,Arial,sans-serif;text-decoration:none;font-weight:normal">
<div style="font-size:12pt;font-family:arial,helvetica,sans-serif"><div><br></div></div></div> // first query the XTextTablesSupplier interface from our document<br> XTextTablesSupplier xTablesSupplier = (XTextTablesSupplier) UnoRuntime.queryInterface(<br>
XTextTablesSupplier.class, xWriterComponent);<br> // get the tables collection<br> XNameAccess xNamedTables = xTablesSupplier.getTextTables();<br><br> // now query the XIndexAccess from the tables collection<br>
XIndexAccess xIndexedTables = (XIndexAccess) UnoRuntime.queryInterface(<br> XIndexAccess.class, xNamedTables);<br> // we need properties<br> xTableProps = null;<br><br> // get the tables<br>
for (int i = 0; i < xIndexedTables.getCount(); i++) {<br> table = xIndexedTables.getByIndex(i);<br> // the properties, please!<br><br><br> xTableProps = (XPropertySet) UnoRuntime.queryInterface(<br>
XPropertySet.class, table);<br> this.xTable = (XTextTable) UnoRuntime.queryInterface(<br> XTextTable.class, table);<br> }<br></div></div></div></div></blockquote>
</div>