Exporting pictures to Excel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am having some difficulties exporting images to excel.

 

I am using the following header:

<?PHP

header ("Content-type: application/vnd.ms-excel");

header ("Content-Disposition: attachment" );

?>

 

Then I just create a table with my data.  This works beautifully and
generates the file correctly with one exception.

When I include the following HTML in one of the columns:

<tr><td><img src="images/specificitems/whatever.jpg"  width = "73" height =
"73"></td></tr>

It only saves the PATH to the image and not the image itself.  When I am
inside the correct directory the image displays.  As soon as I move it
outside this directory it does not display.

 

This makes sense because that is how HTML works.  But what I want to do is
have PHP export the image to excel and insert this image into the file I am
attempting to generate.

Is there a means to insert the actual image into the generated file instead
of the path?

 

Thank you for your time,

Matthew Perry

 


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux