You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can create a TemplateProcessor and save a file to my public directory, but I cannot write it to output.
$templateProcessor = new \PhpOffice\PhpWord\TemplateProcessor($directory_filename);
$datetime = date('Y_M_d_G_i');
$filename = 'receipt_' . $datetime . '.docx';
// Here I fail because I cannot create a $phpWord from a $templateProcessor
$xmlWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'Word2007');
$xmlWriter->save("php:https://output");
Yes, I do $templateProcessor->saveAs($directory_filename) and I get copy of my template with any changes saved to my public directory. But even then .. this does not work:
I can create a TemplateProcessor and save a file to my public directory, but I cannot write it to output.
Yes, I do $templateProcessor->saveAs($directory_filename) and I get copy of my template with any changes saved to my public directory. But even then .. this does not work:
If I write this to output:
I get a PhpWord base document but not the one on the server. Plus I would rather not have one on the server that I have to delete, subsequently.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: