ID: 9141 Updated by: phanto Reported By: [EMAIL PROTECTED] Status: Open Bug Type: COM related Assigned To: Comments: could you paste your php code and not this vb crap. harald. Previous Comments: --------------------------------------------------------------------------- [2001-02-07 00:15:16] [EMAIL PROTECTED] 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. --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9141&edit=2 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]