It’s the same values/tuple that I am passing back and it does not work - why??? [otherwise the code is of no significance - just trying out the various methods]
def Hello(*args, **kwargs):
doc = XSCRIPTCONTEXT.getDocument()
sheet = doc.Sheets[0]
col = sheet.Columns[0]
cell = sheet.getCellByPosition(0,0)
visible_cells = sheet.queryVisibleCells()
for item in dir(visible_cells):
print(item, ' ', end=' ')
for srvc in visible_cells.getSupportedServiceNames():
print(srvc)
import inspect
x = sheet.getColumnDescriptions()
print(x, type(x)) #sheet.Data
try:
sheet.setColumnDescriptions( x ) #<-------------------------------
except Exception as e:
print(dir(e))
raise