Replies: 9   Views: 4818
Using conversion plugin to convert to pdf
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 jprateragg  · 11-04-2013 - 12:13

I made some DCOM changes to allow Everyone to use component services. I'm getting a new error now:

Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> Microsoft Word<br/><b>Description:</b> This file could not be found. (C:WINDOWS...template_docx_text.docx)' in Stack trace: #0 variant->Open('template_docx_t...') #1 MSWordInterface->transformFormat('template_docx_t...', 'test.pdf') #2 C:Inetpubwwwrootaganalysisscrap2.php(24): CreateDocx->transformDocxUsingMSWord('template_docx_t...', 'test.pdf') #3 {main} thrown in on line 60

I can't figure out why this is trying to access C:Windows..., but I can't see the entire directory b/c it puts the ... there. I tried looking specifically for a Word 2010 component, but it was not listed in DCOM Config. Do you have any proper setup instructions for using this on Windows and IIS?

EDIT: I ran this script:

$WrdApp = new COM("Word.Application");
echo("Word.Application Connected.");
echo("Cannot Connect to Word.Application");

And it successfully connected to Word.Application.