PHP 4.0 Bug #9141: cannot call a COM function opening a word appli
| From: | shashank dot kadge at trigyn dot com | Date: | Wed, 07 Feb 2001 05:15:16 +0000 |
| Subject: | PHP 4.0 Bug #9141: cannot call a COM function opening a word appli | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-45929@lists.php.net to get a copy of this message | ||
From: shashank.kadge@trigyn.com
Operating system: windows NT
PHP version: 4.0.3pl1
PHP Bug Type: COM related
Bug description: cannot call a COM function opening a word appli
This is the COM function being called from PHP.
Public Function setFile(filename as String)
Set wproc = CreateObject("Word.Application")
wproc.Visible = False
wproc.Documents.Open (filename)
str1 = Mid(filename, 1, Len(filename) - 3) & "txt"
wproc.ActiveDocument.SaveAs str1, wdFormatText
wproc.Quit
End Function
The error message popped is Invoke failed exception in the line where function is called.
--
Edit Bug report at: http://bugs.php.net/?id=9141&edit=1