>Hi,
>
>I have a code in my app that opens an Excel file (for printing) and it works for many customers. But this one customer reports a problem. The code that opens the file is as following:
>
>
>oExcel = CREATEOBJECT("Excel.Application")
>IF type( "oExcel" ) = "O" and !isnull( oExcel )
> TRY
> oWorkBook = oExcel.Workbooks.open(ALLTRIM(tcDocumentName))
> oWorkBook.Printout()
>CATCH TO oErrorObj
>*-- show error
>FINALLY
> oExcel.Quit()
>ENDTRY
>
>
>The error number caught by the try/catch is Ole IDispatch 1429. The version of the installed Office is 2007 SP2.
>
>What could be causing this error? TIA.
The error from Automation is ALWAYS (OK, almost ALWAYS) 1429 :-)
What is the other part of the error?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.