|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-01-26 08:37 UTC] sjrijk at yahoo dot com
The example (see below) from the PHP site to do some stuff with MS Word seems incompatible with IIS 5.0.
//<BEGIN_CODE>
$word=com_load("Word.application") or die("Cannot start word for you");
print "Loaded word version ($word->Version)\n";
$word->visible =1 ;
$word->Documents->Add();
$word->Selection->Typetext("Dit is een test");
$word->Documents[1]->SaveAs("burb ofzo.doc");
$word->Quit();
//<END_CODE>
The same code has also been executed on (another) system runnig Win ME / Apache and does exactly what it's supposed to do.
Does this problem involves some kind of priviliges, not already documented?
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 09:00:01 2025 UTC |
use $word = new COM("Word.application"); or use the com_propget, com_propput, com_invoke functions after the print command.