Sorry, either translates the error messages or post to a italian php mailing list

[EMAIL PROTECTED] wrote:

How I can manage Word through PHP?

I have tried with the code indicated on PHP-guide (chm format) but it does not

work.



<?php

//test04.php

$word = new COM("word.application") or die("Non sono riuscito ad eseguire Word");



$word->Visible = 1;



$word->Documents->Add();



$word->Selection->TypeText("Questa è una prova...");

$word->Documents[1]->SaveAs("Prova inutile.doc");



$word->Quit();



$word->Release();

$word = null;



?>



Warning: Invoke() failed: Eccezione. Source: Microsoft Word Description: Impossibile aprire la memoria macro. in C:\PHP\ENZO\test04.php on line 7



Warning: Invoke() failed: Eccezione. Source: Microsoft Word Description: Il membro richiesto dell'insieme non esiste. in C:\PHP\ENZO\test04.php on line 10




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

Reply via email to