0
Do u mean something like google doc viewer
This might help:
https://support.microsoft.com/en-us/kb/304662
http://stackoverflow.com/questions/5534534/view-excel-in-webbrowser-control-c-sharp
http://stackoverflow.com/questions/5114751/how-can-i-open-a-excel-inside-a-web-browser
0
Bro, Its Fine... But my question is Showing the datatable values in excel format in one part of the browser ...
Not in table format.... Sorry this is urgent need!!
0
- protectedstringExportDatatableToHtml(DataTabledt)
- {
- StringBuilderstrHTMLBuilder=newStringBuilder();
- strHTMLBuilder.Append("<html>");
- strHTMLBuilder.Append("<head>");
- strHTMLBuilder.Append("</head>");
- strHTMLBuilder.Append("<body>");
- strHTMLBuilder.Append("<tableborder='1px'cellpadding='1'cellspacing='1'bgcolor='lightyellow'style='font-family:Garamond;font-size:smaller'>");
- strHTMLBuilder.Append("<tr>");
- foreach(DataColumnmyColumnindt.Columns)
- {
- strHTMLBuilder.Append("<td>");
- strHTMLBuilder.Append(myColumn.ColumnName);
- strHTMLBuilder.Append("</td>");
- }
- strHTMLBuilder.Append("</tr>");
- foreach(DataRowmyRowindt.Rows)
- {
- strHTMLBuilder.Append("<tr>");
- foreach(DataColumnmyColumnindt.Columns)
- {
- strHTMLBuilder.Append("<td>");
- strHTMLBuilder.Append(myRow[myColumn.ColumnName].ToString());
- strHTMLBuilder.Append("</td>");
- }
- strHTMLBuilder.Append("</tr>");
- }
- strHTMLBuilder.Append("</table>");
- strHTMLBuilder.Append("</body>");
- strHTMLBuilder.Append("</html>");
- stringHtmltext=strHTMLBuilder.ToString();
- returnHtmltext;
- }
You can find the code and explaination from this article
http://www.c-sharpcorner.com/UploadFile/deveshomar/export-datatable-to-html-in-C-Sharp/

0
Bro, By Data table , how to show the excel format in browser???
0
You can import it to datatables and then display in a brower html