#18676 [NEW]: Type conflict error with $word->ActiveDocument->SaveAs
| From: | service at netwear dot de | Date: | Wed, 31 Jul 2002 17:00:17 +0000 |
| Subject: | #18676 [NEW]: Type conflict error with $word->ActiveDocument->SaveAs | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-15698@lists.php.net to get a copy of this message | ||
From: service@netwear.de
Operating system: Windows 98
PHP version: 4.2.2
PHP Bug Type: COM related
Bug description: Type conflict error with $word->ActiveDocument->SaveAs
Hi!
I am trying to open and save a document with Word 97.
I stripped the code down the the essential.
Everything goes well until the document should be saved.
<?
$word = new COM("word.application") or die("Unable to instanciate Word");
$word->Visible = 1;
$word->Documents->Open("d:\\docs\\tutorial.doc");
$word->ActiveDocument->SaveAs("test.doc");
$word->Quit();
?>
The saveas-Function produces the following error:
PHP Warning: Invoke() failed: Typ conflict. Argument: 2 in
d:\php\wordsave.php on line 5
I tried also $word->Documents[1]->SaveAs("test.doc") with the same
result.
Thanks
Harald
--
Edit bug report at http://bugs.php.net/?id=18676&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18676&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18676&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18676&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18676&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18676&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18676&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18676&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18676&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18676&r=globals