Forum


Replies: 6   Views: 1463
Conversion plugin based on ms word: transformdocument error ms word
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 dev-info  · 22-02-2021 - 07:47

Thank you for your response,

but php_com_dotnet.dll is active on wamp server (php.ini and dll present in ext fodler to php version on wamp server.

this is my code: 

   $docx = new Phpdocx\Create\CreateDocxFromTemplate("C:\\wamp64\\test\\test\\BE.docx");

try{

    $docx->createDocx("C:\\wamp64\\test\\BE2.docx");

    $docx->transformDocument("C:\\wamp64\\test\\BE2.docx", "C:\\wamp64\\test\\BE2.pdf");

}catch(Exception $e){

    validationGestionBase::message_log($e->getMessage());

}