load word document with php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

i hope this is the right newsgroup.
I start working with php. Now, i want loading worddocuments  into the with
php, change/add some text and save this changes. I found following simple
example.

<?php
   $word=new COM("word.application") or die("Cannot start word for you");
   $word->visible = 1 ;
   $word->Documents->Open("Test.doc");
   $word->Selection->TypeText("Hello World");
   $word->Documents[1]->SaveAs("New Test.doc");
   $word->ActiveDocument->Close(false);
   $word->Quit(false);
   $word->Release();
   $word = null;
?>
 No error occurs and the new word Document is saved with the changes, but i
don't see the document within the webbrowser.

What is wrong.

Thanks for help

Thomas

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux