Forum


Replies: 9   Views: 4843
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 C:Inetpubwwwrootaganalysisincludesphpdocx-pro-2.5classesMSWordInterface.inc:60 Stack trace: #0 C:Inetpubwwwrootaganalysisincludesphpdocx-pro-2.5classesMSWordInterface.inc(60): variant->Open('template_docx_t...') #1 C:Inetpubwwwrootaganalysisincludesphpdocx-pro-2.5classesCreateDocx.inc(4823): MSWordInterface->transformFormat('template_docx_t...', 'test.pdf') #2 C:Inetpubwwwrootaganalysisscrap2.php(24): CreateDocx->transformDocxUsingMSWord('template_docx_t...', 'test.pdf') #3 {main} thrown in C:Inetpubwwwrootaganalysisincludesphpdocx-pro-2.5classesMSWordInterface.inc 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:

<?php
$WrdApp = new COM("Word.Application");
if($WrdApp)
{
echo("Word.Application Connected.");
}
else
{
echo("Cannot Connect to Word.Application");
}
?>

And it successfully connected to Word.Application.