Embed Excel2007 in PHPWord doc

Oct 17, 2011 at 10:39 PM

It looks like PHPWord only supports Excel 97-2003.  Excel files saved in Excel 2007 format fail to embed.  The error log shows:

PHP Notice:  Source does not exist or unsupported object type. in F:\development\workspace\php_includes\php_includes\PHPWord\Section.php on line 224
[17-Oct-2011 15:37:08] PHP Fatal error:  Uncaught exception 'Exception' with message 'Could not close zip file f:/development/workspace/capacityplanning/doc/biannual/customerletters/2012TrueUp/ac/10000/ac_10000.docx.' in F:\development\workspace\php_includes\php_includes\PHPWord\Writer\Word2007.php:158
Stack trace:
#0 F:\development\workspace\capacityplanning\batch\biannual\letter.php(215): PHPWord_Writer_Word2007->save('f:/development/...')
#1 {main}
  thrown in F:\development\workspace\php_includes\php_includes\PHPWord\Writer\Word2007.php on line 158

We are generating the Excel using PHPExcel, so I can save the workbooks in a format acceptable to PHPWord - but - 1) Could this be a configuration issue on my end?  2) If not - are there plans to fix this in a future release?

 

Thanks ...

Oct 6, 2012 at 3:22 AM

Hey,

any news about that ?

I also want to integrate an excel tab generated with phpexcel into a phpword document...

If you succeded in doin' this I'll appreciate your share .

 

All the best.