Last post Jun 18, 2013 04:25 PM by march11
Jun 18, 2013 12:21 AM|powderworks|LINK
I have some code that converts a Datagrid to Excel and it works fine
But I now a DataGrid that includes a image . The image is genera; in the DatGrid by using URL to a file on the server.
When converted to Ecel the image doesnt show because the URL wont work as the EXcel sheet is displaying on my compter
I neeed to convert Link into .jpg file before converting to Excel
The code i am using is below
sender, System.EventArgs e)
//export to excel
StringWriter oStringWriter =
HtmlTextWriter oHtmlTextWriter =
Jun 18, 2013 04:25 PM|march11|LINK
i don't think you can send a jpg through a text writer.
You may need to pass a link to the jpg and use Excel Macro to update the image in Spreasheet.
Or maybe use some other method to move image to appropriate Excel cell based on the text already populated in first export.