Response.ClearContent(); Response.Buffer = true; Response.AddHeader("content-disposition", string.Format("attachment; filename={0}", "confidential feedback.xls")); Response.ContentType = "application/ms-excel"; Response.Write(""); Response.Write("<html xmlns:x=\"urn:schemas-microsoft-com:office:excel\">"); Response.Write("<body>"); Response.Write("<table border=0 bordercolor=black>"); Response.Write("<tr>"); Response.Write("<td colspan=9><b><center>"); Response.Write("<Font size=4 face='Times New Roman'color='blue'>Confidential Report</font>"); Response.Write("</b></center></td>"); Response.Write("</tr>"); Response.Write("<tr>"); Response.Write("</tr>"); Response.Write("<tr>"); Response.Write("<td colspan=6 align='left'><b><Font size=3 face='Times New Roman'>"); Response.Write("1(a).How much percentage of job satisfaction do you have ?"); Response.Write("</td>"); Response.Write("</tr>"); Response.Write("<tr>"); Response.Write("<td colspan=6 align='left'><Font size=3 face='Times New Roman'>"); Response.Write(dtitems.ItemArray[2].ToString().Trim()); Response.Write("</td>"); Response.Write("</tr>"); Response.Write("<tr>"); Response.Write("</tr>"); Response.Write("<tr>"); Response.Write("<td colspan=6 align='left'><b><Font size=3 face='Times New Roman'>"); Response.Write(" (b).What is required to be done to increase your job satisfaction ?"); Response.Write("</td>"); Response.Write("</tr>"); Response.Write("<tr>"); Response.Write("<td colspan=6 align='left'><Font size=3 face='Times New Roman'>"); Response.Write(dtitems.ItemArray[3].ToString().Trim()); Response.Write("</td>"); Response.Write("</tr>");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)