You are on page 1of 2

Workflow Name: MainHTML

Input Argument:

Output Argument:

Pseudo Code:

Assign:
DTArray = {DT1}
I=0
For Each item in DTArray
{
Assign:
htmlTable = htmlTable+"<style type='text/css'>.myTable { background-
color:#eee;border-collapse:collapse; }.myTable th { background-
color:#33cc33;color:white;width:50%; }.myTable td, .myTable th { padding:5px;border:1px solid
#000; }</style><table class='myTable'><tr>"
i=0
while (i < item.Columns.Count)
{
Assign:
htmlTable = htmlTable
+"<th>"+item.Columns(i).ColumnName+"</th>"
I = i+1
}
Assign:
I=0
htmlTable = htmlTable+"</tr>"
While (i < item.Rows.Count)
{
Assign:
J=0
htmlTable = htmlTable+"<tr>"
While (j < item.Columns.Count)
{
Assign:
HtmlTable = htmlTable +"<td>"+item.Rows(i)(j).ToString+"</td>"
J = j+1
}
Assign:
htmlTable = htmlTable+"</tr>"
I = i+1
}
Assign:
htmlTable = htmlTable+"<tr></tr>"
htmlTable = htmlTable+"</table><br></br>"

You might also like