1

I can't find how to set the name property of a table.

//I create the table here and the default name is table1
XTextTable xTT = (XTextTable) UnoRuntime.queryInterface(XTextTable.class, oInt);
xTT.initialize(1, 1);

How do I proceed to change this name that was set by default?

Jim K
  • 12,824
  • 2
  • 22
  • 51

1 Answers1

1

Get the XNamed interface of xTT and call setName().

See https://forum.openoffice.org/en/forum/viewtopic.php?f=44&t=41424.

Jim K
  • 12,824
  • 2
  • 22
  • 51
  • Thank you, I was able to set the name by the code: XNamed xNamed = UnoRuntime.queryInterface(XNamed.class, xTT); xNamed.setName("name"); – Cesar Frantz Jun 16 '16 at 16:35