HighTechTalks DotNet Forums  

datagrid to excel with image

ASP.net Data Grid Control microsoft.public.dotnet.framework.aspnet.datagridcontrol


Discuss datagrid to excel with image in the ASP.net Data Grid Control forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
joy
 
Posts: n/a

Default datagrid to excel with image - 05-04-2007 , 03:36 AM






Hi.
I have a datagrid which displays images in
cells. User wants to download the grid data as excel file.
Now, if datagrid contains only data, it is fine. But if it
contains some images, images are not displayed in the
excel.is it possible to display images also...


Reply With Quote
  #2  
Old   
MasterGaurav \(www.edujini-labs.com\)
 
Posts: n/a

Default Re: datagrid to excel with image - 05-08-2007 , 01:44 PM






Quote:
Hi.
I have a datagrid which displays images in
cells. User wants to download the grid data as excel file.
Now, if datagrid contains only data, it is fine. But if it
contains some images, images are not displayed in the
excel.is it possible to display images also...
What do you mean by "download the grid data as excel file"? Are you trying
to use the more-popular choice of setting the content-type as
"application/vnd.ms-excel", then what I think you are missing is the
"absolute URL" of the images.

If you are using only relative paths, Excel will search for the images in
the local folder of the target machine... use absolute URLs -- like
"http://..." Note that the way that these excel files are generated only
refer to the image and not embed them within.


--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujini-labs.com
-----------------------------------------




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.