User-16411453 posted
There's no object to apply the style to, but if there was, it would be the following
writer.AddStyleAttribute(HtmlTextWriterStyle.Height, Heights[i].ToString & "px");
//*************PROBLEM HERE
writer.AddStyleAttribute(HtmlTextWriterStyle.Width,
"40px"); //*******PROBLEM HERE
But your way off track on this, I recommend the following
Dim table As Table
table = New Table
table.Style.Add(HtmlTextWriterStyle.Height, Heights(i).ToString & "px") - Not sure about your square brackets [i]
table.Style.Add(HtmlTextWriterStyle.Height, "40px")
Controls.Add(table)
Dim tr As TableRow
tr = New TableRow
table.Controls.Add(table)
writer.Render(table)