Ok, this may have been answered, but I\'m new and trying to learn, so I guess I\'m not \"getting\" it. I have a variable that contains a table of information (I got it from
To build on user1491315 answer.
$html = ""
$tableCol = $table.Columns | select Caption
foreach($col in $tableCol){
$html += "" + $col.Caption + " "
}
$html += " "
$tableColCount = $table.Columns.Count
foreach ($row in $table.Rows)
{
$html += ""
For ($i=0; $i -le $tableColCount; $i++) {
$html += "" + $row[$i] + " "
}
$html += " "
}
$html += "
"
This does the same thing but will automatically set column names.