Forum


Replies: 6   Views: 5104
Fatal error: call to a member function addfromstring()
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 20-04-2015 - 11:22

Hello, You can't invoke this line: $chart = new WordFragment(); without the main $docx. If you check the included examples in detail, you'll see this line: $wf = new WordFragment($docx, 'document'); You need to set the main $docx where to use the WordFragment object. Regards.