Hi!

Im trying to make an application in xharbour that will fill up cells in an Excel Workbook (XLS) and In an Excel TEmplate file (XLT)..

here's the code:

*----------------------------------------------------------------*
TRY
oExcel := GetActiveObject( "Excel.Application" )
CATCH
TRY
oExcel := CreateObject( "Excel.Application" )
CATCH
Alert( "ERROR! Excel not avialable. [" + Ole2TxtError()+ "]" )
RETURN
END
END

oExcel:Workbooks:Open("RB-SOLO-COCE.xlt")
*----------------------------------------------------------------*

the problem is i get this error message at run time:

Error Excel.Application:WORKBOOKS/16389 E_FAIL: OPEN Arguments: ( [ 1] = Type: C Val: RB-SOLO-COCE.xlt)
Error at ...: TOLEAUTO:OPEN(0) in Module: win32ole.prg