Response.Clear() Response.AddHeader("content-disposition", "attachment;filename= Report.xls") Response.Charset = "" Response.ContentType = "application/vnd.ms-excel" Dim stringWrite As New System.IO.StringWriter() Dim htmlWrite As System.Web.UI.HtmlTextWriter = New HtmlTextWriter(stringWrite) Panel4.RenderControl(htmlWrite) Response.Write(stringWrite.ToString()) Response.End()
Response.Clear() Response.AddHeader("content-disposition", "attachment;filename= Report.xls") Response.Charset = "" Response.ContentType = "application/vnd.ms-excel" Dim stringWrite As New System.IO.StringWriter() Dim htmlWrite As System.Web.UI.HtmlTextWriter = New HtmlTextWriter(stringWrite) Dim stringWrite2 As New System.IO.StringWriter() Dim htmlWrite2 As System.Web.UI.HtmlTextWriter = New HtmlTextWriter(stringWrite2) Panel4.RenderControl(htmlWrite) Response.Write(stringWrite.ToString()) Panel2.RenderControl(htmlWrite2) Response.Write(stringWrite2.ToString()) Response.End()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)