Export Images to Excel using ASP

Excel2007 Export Images to Excel using ASPUse the following two steps for exporting images to MS excelsheet.

Step1: Header Declaration
<%
Response.ContentType="Application/vnd.ms-excel"
Response.AddHeader "content-disposition", “attachment; filename=""cpse-"& Month(Date())& Day(Date())& Year(Date()) &".xls"""
%>

Step 2: add this XML snippet where you want your image to appear:

<!–[if gte vml 1]><v:shape

id=”_x0000_s1075″ type=”#_x0000_t75″ style=’position:absolute;margin-left:3pt;

margin-top:7.5pt;width:71.25pt;height:71.25pt;z-index:36′>

<v:imagedata src=”http://www.southdreamz.com/wp-content/themes/palz/images/SouthDreamZ.jpg”

o:title=”NYC_logo-cpse”/>

<x:ClientData ObjectType=”Pict”>

<x:SizeWithCells/>

<x:CF>Bitmap</x:CF>

</x:ClientData>

</v:shape><![endif]–>

Finally, you might need to change the values of width, height or anything you want, but please leave the absolute path where the image resides on your server. I’ve been struggling with this problem for weeks. Hope this helps.

Interested in writing Technology tips for SouthDreamZ.com?

Are you interested in writing Technology articles for SouthDreamZ.com or updating Export Images to Excel using ASP article? You can! SouthDreamZ.com is currently looking for writers who are interested in writing Technology articles. Send your articles to [email protected], for more details visit Feature Yourself page.
On this article, we have tried to provide all the information on Export Images to Excel using ASP. However, if you encounter any discrepancy in the information about Export Images to Excel using ASP, do write to us. We welcome any kind of feedback that would improve the quality of the site, a site that strives to provide the best information on Export Images to Excel using ASP.