#34826 [NEW]: multiple parameters not being passed

From: Date: Tue, 11 Oct 2005 11:26:04 +0000
Subject: #34826 [NEW]: multiple parameters not being passed
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-86389@lists.php.net to get a copy of this message
From: george dot pitcher at ingenta dot com Operating system: Windows XP PHP version: 5.1.0RC1 PHP Bug Type: COM related Bug description: multiple parameters not being passed Description: ------------ Building a Word document with COM works fine except where more than one parameter is required. Code generates the following error: Loaded Word, version 9.0 com_exception Object ( [message:protected] => Error [0x8002000e] Invalid number of parameters. [string:private] => [code:protected] => -2147352562 [file:protected] => C:\Inetpub\wwwroot\testsite\word_test.php [line:protected] => 19 [trace:private] => Array ( [0] => Array ( [file] => C:\Inetpub\wwwroot\testsite\word_test.php [line] => 19 [function] => unknown ) ) ) Reproduce code: --------------- $logo = "_pathtofile_\\logo.jpg" try { $word->Selection->InlineShapes->AddPicture->FileName($logo,0,1); } catch (com_exception $e) { print_r($e); // or do some better error handling } Expected result: ---------------- an image loded into the Word document, not linked but saved with the file Actual result: -------------- No image at all -- Edit bug report at http://bugs.php.net/?id=34826&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34826&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34826&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34826&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34826&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34826&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34826&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34826&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34826&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34826&r=support Expected behavior: http://bugs.php.net/fix.php?id=34826&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34826&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34826&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34826&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34826&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34826&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34826&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34826&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34826&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34826&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34826&r=mysqlcfg

« previous php.bugs (#86389) next »