From:             [EMAIL PROTECTED]
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
End Function

The error message popped is Invoke failed exception in the line where function is 

Edit Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to