0

I want to export the image column of the gridview to excel file but when i export the column didn't contain the image but the text like this "System.Drawing.Image" by the way the images is stored in sql table and not using the path to save images but the whole image is stored in the table.. Please help me..

Umair
  • 29
  • 1
  • 3
  • how do you export your grid to excel? any library? looks like that you want to store the paths to images only (not the images themselves)? So if you know thoroughly how you export your grid to excel, I think you can solve this problem yourself easily. – King King Jun 21 '13 at 16:00
  • No i m storing the whole image in table and i m asking this question second time here is the link for my first question this also include the code for griview export to excel [link](http://stackoverflow.com/questions/17155388/export-gridview-data-to-excel-with-images-which-is-stored-in-database-table) – Umair Jun 21 '13 at 19:25
  • @Umair, check the answer provided here: http://stackoverflow.com/questions/8312257/export-datagridview-data-with-images-into-excel-html-or-word-with-proper-table – Uranus Jun 22 '13 at 20:24
  • @Uranus i dont have the image path bcoz i m storing the whole image in database table so this was not working for.. for further info about question see this link http://stackoverflow.com/questions/17155388/export-gridview-data-to-excel-with-images-which-is-stored-in-database-table – Umair Jun 23 '13 at 12:00
  • In this situation, cell values are either of Image or byte array type. In latter case, use that approach to convert a byte array to an image: http://stackoverflow.com/questions/9173904/bytearray-to-image-conversion – Uranus Jun 24 '13 at 05:31

0 Answers0