-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help wanted to create document using template. #1449
Comments
Can you try something like this?
|
I tried but it says. |
Remove the |
Please change your
|
Try using the
|
I am using PHPword to generate the word documents. I want to generate multiple documents so that I want to use the template. I tried this code in the controller
$templateProcessor = new TemplateProcessor('resources/Sample_07_TemplateCloneRow.docx');
$templateProcessor->setValue('Name', 'John Doe');
$templateProcessor->setValue(array('City', 'Street'), array('Detroit', '12th Street'));
and following error is displayed:
copy(resources/Sample_07_TemplateCloneRow.docx): failed to open stream: No such file or directory
at :
// Template file cloning
if (false === copy($documentTemplate, $this->tempDocumentFilename)) {
throw new CopyFileException($documentTemplate, $this->tempDocumentFilename);
}
What is the default directory of Template Processor? or we have to give location manually. Please help!
The text was updated successfully, but these errors were encountered: