var data = me.Data; //InfoTable
var result;
result = "<!DOCTYPE html><html><head></head><body>" +
"<table style='width: 100%; border-collapse: collapse;'>" +
"<thead>" +
"<tr>" +
"<th style='border: 1px solid black; color: white; padding: 8px; text-align: center; background-color: #005495;'>Column 1</th>" +
"<th style='border: 1px solid black; color: white; padding: 8px; text-align: center; background-color: #005495;'>Column 2</th>" +
"<th style='border: 1px solid black; color: white; padding: 8px; text-align: center; background-color: #005495;'>Column 3</th>" +
"</tr>" +
"</thead>" +
"<tbody>";
// Iterate over the rows of the InfoTable
for (var i = 0; i < data.rows.length; i++) {
var row = data.rows[i];
result += "<tr>";
// Iterate over each column in the row
for (var key in row) {
var value = row[key];
result += "<td style='border: 1px solid black; padding: 8px; text-align: center;'>" + value + "</td>";
}
result += "</tr>";
}
result += "</tbody>" +
"</table>" +
"</body></html>";