Eu uso HB-32 console+ W7-64 professional e tenho o Excel 2016 instalado no PC. Desde que reformatei o HD eu não consigo mais gerar uma planilha XLS..
Alguém tem alguma dica pra eu testar ?
1)Eu tentei o comando abaixo, mas sempre retorna FALSE
IF ( oExcel := win_oleCreateObject( "Excel.Application" ) ) = NIL
**IF ( oExcel := win_oleCreateObject( "Excel.Application.16" ) ) = NIL // tb nao funcionou
tret=.f.
Aviso("O aplicativo Excel nao esta operacional no atual ambiente")
else
tret=.t.
endif
retu tret
2)E tentei o Comando
oExcel:=TOleAuto():New( "Excel.Application" )que sempre retorna o erro
Log
-------------------- Internal Error Handling Information ---------------------
Subsystem Call ....: TOleAuto
System Code .......: -1
Default Status ....: .F.
Description .......: CO_E_CLASSSTRING
Operation .........: TOLEAUTO:NEW
Arguments .........: [ 1] = Type: C Val: Excel.Application
Involved File .....:
Dos Error Code ....: 0
|Error TOleAuto/-1 CO_E_CLASSSTRING: TOLEAUTO:NEW Arguments: ( [ 1] = Type: C Va|
|l: Excel.Application) |
| |
|Error at ...: XHB_DEFERROR(0) in Module: xhb\xhberr.prg |
|Called from : TOLEAUTO:NEW(0) in Module: xhb\xhbole.prg |
|Called from : EXCELINSTALADO(536) in Module: funCOMUM.prg |
|Called from : EXCEL08(12) in Module: Excel08.prg |
|Called from : EST001C4(131) in Module: est001c4.prg |
|Called from : EST001C(80) in Module: est001c.prg |
|Called from : EST001(506) in Module: est001.prg |
|Called from : MAIN(943) in Module: Estcdx.prg |