0

PHPPowerpoint と彼の例を使用しようとしています

しかし、次のエラーが表示されます。

*Sample 01 Complex
14:56:03 Create new PHPPresentation object
14:56:03 Set properties
14:56:03 Remove first slide
14:56:03 Create templated slide
14:56:03 Create a shape (rich text)
14:56:03 Create templated slide
14:56:03 Create a shape (rich text)
14:56:03 Create a shape (rich text)
14:56:03 Create templated slide
14:56:03 Create a shape (rich text)
14:56:03 Create a shape (rich text)
14:56:03 Create templated slide
14:56:03 Create a shape (rich text)
14:56:03 Create a shape (rich text)

**Fatal error: Class 'Common\XMLWriter' not found in .....\test phppowerpoint\PHPPowerPoint-develop\src\PhpPresentation\Writer\PowerPoint2007\AbstractPart.php on line 76***

誰でもこのエラーを修正するのを手伝ってもらえますか? ありがとうございました

4

2 に答える 2

4

You are facing this problem because common office php files are missing. Download:

https://github.com/PHPOffice/Common

and include it in your source code (after updating the path):

require_once 'Common-develop/src/Common/Autoloader.php';
\PhpOffice\Common\Autoloader::register();
于 2015-07-23T01:07:21.593 に答える