Hello,
I can't set the columns width in a table.
I created an array like this:
Dim WCellT(6) As Int32
WCellT(0) = 5
WCellT(1) = 2
WCellT(2) = 3
WCellT(3) = 20
WCellT(4) = 5
WCellT(5) = 6
My table has 6 columns.
for r As Integer = 0 To 5
For c As Integer = 0 To datiTurni(r).Length - 1
pRow = rowT.Cells(c).AddParagraph()
Dim TR2 As TextRange = pRow.AppendText(dataT(r)(c))
tblTT.Rows(r).Cells(c).Width = CellWidthType.Percentage.ToString = WCellT(c).ToString or also:
tblTT.Rows(r).Cells(c).Width = CellWidthType.Point.ToString = WCellT(c).ToString or also:
tblTT.Rows(r).Cells(c).Width = WCellT(c).ToString next c
next r
None of these three solutions work,
Can anyone help me?
thank you,
Paola