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.