Answers.Body: <p>I had a similar issue on an installation with PHPOffice. </p>
  
  <p>PHPOffice is automatically installed via composer in CiviCRM, but apparently composer fails to check for needed PHP extensions. In my case php-zip was missing, and after installing that everything went fine.</p>
  
  <p>I am not sure if composer should check the requirements, or if they aren't properly configured. Eli's comment helped a lot debugging this for me!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-03T15:52:21.900Z
Answers.LastActivityDate: 2017-07-03T15:52:21.900Z
Answers.UserDisplayName: Phil_B
Body: <p>Since CiviCRM 4.7 it is possible to print/merge documents not only as a pdf-file but also as an odt, docx or html file.</p>
  
  <p>Does the function to create odt or docx files require any particular setting, installed libraries etc? I did not find any documentation and wanted to ask before I start debugging.</p>
  
  <p>I have a "fresh" CiviCRM 4.7.16 instance and I am able to create pdf and html files but not docx or odt (File not found error).</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-03-16T20:32:12.133Z
Comments.Text: I guess I would check for 'phpoffice/phpword' library, although composer should know to install that as per https://github.com/civicrm/civicrm-core/blob/dbccfacb43e4046e596bdeea2b3414bc0bac6222/composer.json#L23 & from https://issues.civicrm.org/jira/browse/CRM-17607 & https://issues.civicrm.org/jira/browse/CRM-17608.
Comments.UserDisplayName: Eli Lisseck
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-03-18T21:33:29.033Z
Comments.Text: Turn on debug & backtrace and post the error here.
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-03-20T07:32:43.463Z
Comments.Text: Eli: Thanks, I will have a look at those links. Coleman: Once I start debugging I will deinitely do that but I actually wanted to know if it should work out of the box.
Comments.UserDisplayName: Fabian
Tags: <error><core>
Title: Are there any pre-conditions or required settings to print/merge documents in 4.7?
ThreadText: # Are there any pre-conditions or required settings to print/merge documents in 4.7?
  
  (Asked by: username_0 on 2017-03-09)
  
  Since CiviCRM 4.7 it is possible to print/merge documents not only as a pdf-file but also as an odt, docx or html file.
  
  Does the function to create odt or docx files require any particular setting, installed libraries etc? I did not find any documentation and wanted to ask before I start debugging.
  
  I have a "fresh" CiviCRM 4.7.16 instance and I am able to create pdf and html files but not docx or odt (File not found error).
  
  **Tags:** error, core
  
  > **Comments:**
  > **username_1**: I guess I would check for 'phpoffice/phpword' library, although composer should know to install that as per https://github.com/civicrm/civicrm-core/blob/dbccfacb43e4046e596bdeea2b3414bc0bac6222/composer.json#L23 & from https://issues.civicrm.org/jira/browse/CRM-17607 & https://issues.civicrm.org/jira/browse/CRM-17608.  
  > **username_2**: Turn on debug & backtrace and post the error here.  
  > **username_0**: Eli: Thanks, I will have a look at those links. username_2: Once I start debugging I will deinitely do that but I actually wanted to know if it should work out of the box.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2017-07-03. Score: 2 | Accepted answer
  
  I had a similar issue on an installation with PHPOffice.
  
  PHPOffice is automatically installed via composer in CiviCRM, but apparently composer fails to check for needed PHP extensions. In my case php-zip was missing, and after installing that everything went fine.
  
  I am not sure if composer should check the requirements, or if they aren't properly configured. Eli's comment helped a lot debugging this for me!
  
  
  ---
  
  