Sep 30, 2010 03:22 AM|Sangeeth.India|LINK
I have an image loaded in a div element. (This image will be added dynamically thru JS, based on the option selected by the user).
I have a requirement to open this image in Word, Excel and Pdf applications when those icons (given in the page) are clicked, respectively.
Response.Charset = "";
Response.ContentType = "application/vnd.xls";
StringWriter stringWrite = new StringWriter();
HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
The same code works fine to render a gridview in excel, but not an image. I also tried placing the image element in a table tag.
Thanks in advance.