Forum


Replies: 9   Views: 4870
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 jorgelj  · 17-04-2013 - 09:06

Hello,



Can you run a simple example like?:



----------------------------------------



// starting word

$word = new COM("word.application") or die("Unable to instantiate Word");

echo 
"Loaded Word, version {$word->Version}\n";



//bring it to front

$word->Visible 1;



//open an empty document

$word->Documents->Add();



//do some weird stuff

$word->Selection->TypeText("This is a test...");

$word->Documents[1]->SaveAs("Useless test.doc");



//closing word

$word->Quit();



//free the object

$word null;



----------------------------------------



Regards.