Quantcast
Channel: PHPWord
Viewing all articles
Browse latest Browse all 450

Created Unassigned: I can't get the source code to create files from examples [64]

$
0
0
Hi,

I tried the Examples that came with the source but unable to get the Examples to generate files. I put a couple of echo statements in the examples to see where it got stuck and found out that it got stuck at SAVING the file.

The example from HeaderFooter.php is:

echo "It got to this point<br />";

// Save File
$objWriter = PHPWord_IOFactory::createWriter($PHPWord, 'Word2007');
$objWriter->save('/tmp/HeaderFooter.docx');

echo "Word file outputted OK<br />";

Please advise.

Viewing all articles
Browse latest Browse all 450

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>