This is working fine for Mr.Otto but not for you. The problem is not because of the version of Office.
Please open \fwh\source\function\olefuncs.prg.
First function is GetOleObject( cApp )
- Code: Select all Expand view RUN
function GetOleObject( cApp )
local oObj
TRY
oObj := GetActiveObject( cApp )
CATCH
TRY
oObj := CreateObject( cApp )
CATCH
END
END
return oObj
This function is reported to hanging with xHarbour commerical. Probably it may be hanging with your version of xHarbour too.
Please try substituing the function with the following function
- Code: Select all Expand view RUN
function GetOleObject( cApp )
local oObj
TRY
oObj := TOleAuto():New( cApp )
CATCH
END
return oObj
Compile the program and link the object file with your above sample code.
Please let us know if the sample program is working or still hanging.
This work around solved the problem for some users.