0

I'm exporting a data in XLS format with the use of ExcelWriter() in PHP. In some cases I have a data in image format (stored as a path). is that possible to directly show images in the excel?

Parthi04
  • 1,121
  • 4
  • 21
  • 39
  • Are they stored as URLs? – silkfire Jul 01 '13 at 08:13
  • Which ExcelWriter library are you asking about? Neither of the two libraries I'm aware of with that name (http://sourceforge.net/projects/excelwriterxml/ or http://excelwriterxml.sourceforge.net/) support images. Though there are a number of alternatives that do. – Mark Baker Jul 01 '13 at 09:10

1 Answers1

1

Just do something like:

echo '<img src="' . $url . '" />';
silkfire
  • 24,585
  • 15
  • 82
  • 105