Hi,
To do this you need to write code to generate HTML code and display in panel or other contain control.
Here is the sample,
result.AppendFormat("<html><head><title>{0}</title>", run.Name);
result.Append("<style type="text/css">");
result.Append(GetCss());
result.Append("</style>");
result.Append("<script type=\"text/javascript\">");
result.Append(@"
function togle(anId){
var el = document.getElementById(anId);
if (el!=null){
if (el.style.display=='none'){
el.style.display='block';
}else{
el.style.display='none';
}
}
} ");
result.Append("</script>");
result.Append("</head><body>");
result.Append("<a name="__top" />");
result.AppendFormat(@"<h3>{0}</h3>
<div class="contents">
<a href="#totals">Totals</a>
|
<a href="#summary">Summary</a>
|
<a href="#slower">Slowers</a>
|
<a href="#detail">Detail</a>
|
<a href="#envInfo">Environment Information</a>
</div>
<br />
<a name="totals" />",
run.Name);
Above code is for Table header creation, similarly you need to iterate through all the rows of your table and need to generate TR TD pairs.
hope this will help you,
thanks
-Amit.