Forum


Replies: 4   Views: 6253
Transformdocxusingmsword con windows server 2008 y office 2007
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by willow  · 07-04-2015 - 18:07

Hola, Acabo de instalar un servidor Windows Server 2008 R2 con Apache 2.4, PHP 5.5, PHPDocx 3.7 versión PRO+ y Microsoft Office 2007. Test del check.php: c:\tmp2>php check.php OK PHP version is 5.5.23 OK Zip support is enabled. OK XSL support is enabled. OK DOM support is enabled. OK XML support is enabled. OK Tidy support is enabled. Warning The path examples/docx used by the examples isn't writable. OK The library can write to temp folder. Warning You're not running OpenOffice in headless mode on port 8100. If you have any issue or problem please send us the following info: PHP_VERSION: 5.5.23 PHP_OS: WINNT PHP_UNAME: Windows NT WIN-384NRURJD43 6.1 build 7601 (Windows Server 2008 R2 Sta ndard Edition Service Pack 1) i586 CODE: SERVER_NAME: SERVER_SOFTWARE: SERVER_ADDR: SERVER_PROTOCOL: HTTP_HOST: XXXXXXXXX HTTP_X_FORWARDED_FOR: PHP_SELF: check.php XSLTProcessor: 1 ZipArchive: 1 DomDocument: 1 SimpleXMLElement: 1 Tidy: 1 IS_WRITABLE DEFAULT TEMP: 1 c:\tmp2> Con el siguiente ejemplo: $docx = new CreateDocx(); $docx->transformDocxUsingMSWord('C:\\tmp2\\temp.docx', 'C:\\tmp2\\test.pdf'); $docx->transformDocxUsingMSWord('C:\\tmp2\\temp.docx', 'C:\\tmp2\\test.txt'); Resultado: Fatal error: Uncaught exception 'com_exception' with message 'Source: Microsoft Word
Description: El elemento del conjunto solicitado no existe.' in C:\Apache24\includes\PHPdocx\classes\MSWordInterface.inc:65 Stack trace: #0 C:\Apache24\includes\PHPdocx\classes\MSWordInterface.inc(65): MSWordInterface->transformFormat() #1 C:\Apache24\includes\PHPdocx\classes\CreateDocx.inc(7197): MSWordInterface->transformFormat('C:\\tmp2\\temp.do...', 'C:\\WINDOWS\\TEMP...') #2 C:\Apache24\htdocs\test.php(8): CreateDocx->transformDocxUsingMSWord('C:\\tmp2\\temp.do...', 'C:\\WINDOWS\\TEMP...') #3 {main} thrown in C:\Apache24\includes\PHPdocx\classes\MSWordInterface.inc on line 65 ¿alguna idea o sugerencia? Gracias y un saludo, Sergio.