Hi,
Is there a way to extract the column headings from a Table? Row 0 contains values and I can not find any simple way to get to the headings. I also looked for a way to extract those from from the ias instead but so far I have not succeded.
Best regards
Fredrik Olsson
Edit: No need to answer. I found the solution myself. One may extract the colum names from something like:
temp = Zeiss.Micro.Scripting.Core.ZenAnalyzerWrapper.GetTableStructure(ftable)
cnames = temp.columnNames
for i in range(0,cnames.Count):
print cnames
Extract column headings from Table
This worked for me best:Is there a way to extract the column headings from a Table?
Code: Select all
table = Zen.Application.ActiveDocument
print table.Columns[0].[B]Caption[/B]
The ColumnUnit will come with the next Releases (first Zen Core, then Zen Blue)
You will get the unit of a Column as demonstrated in the code below
Thanks for the contribution!
You will get the unit of a Column as demonstrated in the code below
Code: Select all
table = Zen.Application.ActiveDocument
unit = table.Columns[0].GetColumnUnit()