I'm running the example called table.php from the free version and changed the last line from
$docx->createDocx('/tmp/example_table');
to
$docx->createDocxAndDownload('/tmp/example_table');
But my debugger tells me that the method createDocxAndDownload can't be found.
If this method isn't available in the free version, is there a method available that will allow the document data to be echo'ed after
the appropriate php header statements?
eg.
header("Cache-Control: no-cache, must-revalidate" ); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header('Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document');
echo $docx->print();
Or maybe streamed to php's output buffer...
$output = fopen("php://output", "w");
$docx->stream($output); # stream object content to PHP's output buffer
fclose($output);
I have been using Zend's LiveDocX but this looks much better and I'm going to make the switch. Just want to see my generated document downloaded by the browser and inspect it in Word first (seeing is believeing ;) )
TIA,
Nick Weavers