[PHP] picture(s) in Excel

2003-07-09 Thread jan

Hi there!

I'd like to ask if there is any work-around available for saving
picture(s) (BMP/JPG/PNG) in *.xls file.

I need to create (using PHP) dynamically xls file with some pictures in
it.

thanks

Jan


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] picture(s) in Excel

2003-07-09 Thread Marek Kilimajer
Use this class:
http://phpclasses.web4u.cz/browse.html/package/767.html
and insert_bitmap() method of a Worksheet object.
jan wrote:

Hi there!

I'd like to ask if there is any work-around available for saving
picture(s) (BMP/JPG/PNG) in *.xls file.
I need to create (using PHP) dynamically xls file with some pictures in
it.
thanks

Jan




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] picture(s) in Excel

2003-07-09 Thread jan
Hi !

thanks.
yes, that's the solution for BMP files. I would prefer using PNG of JPG
format. Is it possible ?

Jan

On Wed, 2003-07-09 at 13:34, Marek Kilimajer wrote:
 Use this class:
 http://phpclasses.web4u.cz/browse.html/package/767.html
 and insert_bitmap() method of a Worksheet object.
 
 
 jan wrote:
 
  Hi there!
  
  I'd like to ask if there is any work-around available for saving
  picture(s) (BMP/JPG/PNG) in *.xls file.
  
  I need to create (using PHP) dynamically xls file with some pictures in
  it.
  
  thanks
  
  Jan
  
  
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] picture(s) in Excel

2003-07-09 Thread Marek Kilimajer
You can explore the possibility of Web Archives. This is how a web 
archive starts:

MIME-Version: 1.0
X-Document-Type: Worksheet
Content-Type: multipart/related; boundary==_NextPart_01C3461B.AE5C1F00
This document is a Web archive file.  If you are seeing this message, 
this means your browser or editor doesn't support Web archive files. 
For more information on the Web archive format, go to 
http://officeupdate.microsoft.com/office/webarchive.htm

--=_NextPart_01C3461B.AE5C1F00
Content-Location: file:///C:/8B52764B/obrazok.htm
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=windows-1250
html xmlns:v=3Durn:schemas-microsoft-com:vml
xmlns:o=3Durn:schemas-microsoft-com:office:office
xmlns:x=3Durn:schemas-microsoft-com:office:excel
xmlns=3Dhttp://www.w3.org/TR/REC-html40;
head
meta http-equiv=3DContent-Type content=3Dtext/html; charset=3Dwindows-125=
0
meta name=3DProgId content=3DExcel.Sheet
meta name=3DGenerator content=3DMicrosoft Excel 10
... and so goes the head tag.
body
div id=3Dobrazok_11330 align=3Dcenter x:publishsource=3DExcel
table x:str border=3D0 cellpadding=3D0 cellspacing=3D0 width=3D512 style=
=3D'border-collapse:
 collapse;table-layout:fixed;width:384pt'
 col width=3D64 span=3D8 style=3D'width:48pt'
 tr height=3D17 style=3D'height:12.75pt'
  td height=3D17 class=3Dxl1511330 width=3D64 
style=3D'height:12.75pt;widt=
h:48pt'halo/td
.

As you can see it is a simple mime multipart message with some html tags 
in it, there are plenty of classes that can help you to build this. 
Image will be in another part. Also check out the above mentioned link.

jan wrote:

Hi !

thanks.
yes, that's the solution for BMP files. I would prefer using PNG of JPG
format. Is it possible ?
Jan


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php