在phpword中添加OLEObject

时间:2018-04-15 02:14:05

标签: phpword phpoffice

我正在尝试使用PHPWord示例添加OLE对象 但没有添加任何对象

 <?php
 require __DIR__ . '/vendor/autoload.php';

  $phpWord = new \PhpOffice\PhpWord\PhpWord();
  $section = $phpWord->addSection();
  $section->addText('You can open this OLE object by double clicking on the 
  icon:');
  $section->addTextBreak(2);
   $section->addOLEObject('resources/_sheet.xls');

PHP 5:  PHPWord版本:0​​.14 windows7终极sp1 MS Office 2010

0 个答案:

没有答案