I've got Table Control in Libre/OpenOffice Base form which is filled dynamically.
I want to change height of it to match number of rows.
How to do it?
I've tried changing getSize()
/ setSize()
, and height
property but I'm getting:
Property or method not found: getSize
My code:
oTable = oForm.GetByName("MySubForm").GetByName("MyTable")
oTable.getSize()
Visualisation: https://i.stack.imgur.com/socUI.png
About this Table Control as it is named in Base - in debugger it's com.star.comp.forms.OGridControlModel
, in content.xml it's listed as com.sun.star.form.component.GridControl