Hi
I have a table
<table id="mytable" border="0" >
<tr>
<td>
dATA
</td>
<td>
dATA</td>
<td>
dATATTATAA;</td>
</tr>
<tr>
<td>
DUMMY</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
</table>
And i want to export to pdf code i used is
Response.Clear();
Response.AddHeader("content-disposition", "attachment;filename=myexcel.pdf");
Response.ContentType = "application/pdf";
StringWriter sw = new System.IO.StringWriter();
HtmlTextWriter hw = new HtmlTextWriter(sw);
mytable.RenderControl(hw);
Response.Write(sw.ToString());
Response.End();
but its not working and giving error that file can not be open.......
Please help.....