From: cstreeter at andesagroup dot com Operating system: Win XP Pro SP1 PHP version: 5CVS-2003-03-27 (dev) PHP Bug Type: COM related Bug description: COM calls generate XP error
Here's the code snippet I am using: <? $word = new COM("word.application") or die("Unable to instanciate Word"); print "Loaded Word, version {$word->Version}\n"; $word->Visible = 1; $word->Documents->Add(); $word->Selection->TypeText("This is a test..."); $word->Documents[1]->SaveAs("Useless test.doc"); $word->Quit(); ?> instatiating the Word object works fin. I can tell becuse this does not fail when comment all the other code out and I can see in the Windows Task Manager that an instance of Word was instantiated. As soon as I try to do anything else, I get one of those famous XP error screens asking me if I want to send the info to Microsoft. According to this code (which I got from PHP help site somewhere) it looks fairly straight forward. Nothing fancy going on here. Can you help? Thank you. Chris Streeter The Andesa Corporation Bethlehem, PA, USA -- Edit bug report at http://bugs.php.net/?id=22933&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22933&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22933&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22933&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22933&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22933&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22933&r=support Expected behavior: http://bugs.php.net/fix.php?id=22933&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22933&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22933&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22933&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22933&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22933&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22933&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22933&r=gnused