G
Guest
The datagrid is exporting but without the images. When the file is
downloaded, it seems that the excel file was supposed to have the images
because they appear as "broken" image in the file.
This is the abbreviated approach that I am currently using.
Response.Clear()
Response.Buffer = True
Response.ContentType = "application/vnd.ms-excel"
Response.Charset = ""
Me.EnableViewState = False
Dim oStringWriter As New System.IO.StringWriter()
Dim oHtmlTextWriter As New System.Web.UI.HtmlTextWriter(oStringWriter)
datagrid.RenderControl(oHtmlTextWriter)
Response.Write(oStringWriter.ToString())
Response.End()
How can I get the images to be included in the exported file?
Thanks
downloaded, it seems that the excel file was supposed to have the images
because they appear as "broken" image in the file.
This is the abbreviated approach that I am currently using.
Response.Clear()
Response.Buffer = True
Response.ContentType = "application/vnd.ms-excel"
Response.Charset = ""
Me.EnableViewState = False
Dim oStringWriter As New System.IO.StringWriter()
Dim oHtmlTextWriter As New System.Web.UI.HtmlTextWriter(oStringWriter)
datagrid.RenderControl(oHtmlTextWriter)
Response.Write(oStringWriter.ToString())
Response.End()
How can I get the images to be included in the exported file?
Thanks