Re: datagrid to excel with image



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
-----------------------------------------


.



Relevant Pages

  • Re: Office 2003 Images
    ... These materials all contain images, borders, etc. ... > one Word document that is approximately 25 MB in size that won't even ... The Excel file will open, ... > the shaded yellow cells - the images do not appear. ...
    (microsoft.public.office.misc)
  • Re: hyperlink
    ... RCB wrote: ... all I really need is to set it to the the directory the main excel file - as ... "Dave Peterson" wrote: ... many hyperlinks to images that worked. ...
    (microsoft.public.excel.misc)
  • RE: Office 2003 Images
    ... > materials all contain images, borders, etc. ... I have one Word document that is ... The Excel file will open, but all I see are the ... > shaded yellow cells - the images do not appear. ...
    (microsoft.public.office.misc)
  • Re: hyperlink
    ... all I really need is to set it to the the directory the main excel file - as ... "Dave Peterson" wrote: ... many hyperlinks to images that worked. ... I am on a LAN - have mapped drive - and the images are in a subdirectory ...
    (microsoft.public.excel.misc)
  • excel erroring out
    ... i have a workbook with several macros in it, size is about 2 mb, has ... about 6 sheets, couple of images. ... other excel file, excel errors out and closes both the files. ...
    (microsoft.public.excel.misc)

Loading