Boa noite, pessoal.
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
-------------------- 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 |
Não tenho certeza, mas talvez falte algum componente pra 32 bits.
Fazem muitos anos que não uso isso.
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2) "The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell" https://github.com/JoseQuintas/
Infelizmente acho que é alguma incompatibilidade no Windows 10 , nas maquinas que tenho Windows 10 instalado com o office 365 dá esse mesmo erro, será que alguém conhece alguma outra maneira de criar planilha do Excel com o harbour ?
Fiz alguns testes hoje e percebi que a maquina que tinha o office 365 não estava funcionando, pois a variavel de ambiente do windows "SystemRoot"estava vazia, quando o correto é:
"SystemRoot=C:\WINDOWS" depois de eu dar o comando SET SystemRoot=C:\WINDOWS Voltou a funcionar.
Porem gostaria de saber se tem como gerar planilha em uma maquina que não tem o Excel instalado.
Quanto ao problema inicial, ressuscitando o post antigo:
Diz usar Harbour 3.2, mas o erro é do XHARBOUR.
Provavelmente usando a biblioteca de compatibilidade com XHarbour aconteça o mesmo erro do XHarbour.
Quanto a gerar planilha sem Excel:
- Pode gerar arquivo CSV.
- Pode usar o ADO e o ODBC pra Excel, que a Microsoft disponibiliza grátis.
- Pode usar LIBs que criaram pra isso, que tem no GitHub
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2) "The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell" https://github.com/JoseQuintas/
Marcos Kieron escreveu:Fiz um teste aqui, funcionou, mas verifiquei que precisa ter o Excel instalado para funcionar.
Já tentou re-instalar o Excel?
Acho que confundiu com as mensagens anteriores (antigas), que eu apenas acrescentei por não ter resposta anterior, sobre a lib de compatibilidade.
A pergunta dele foi esta:
alemellado escreveu:Porem gostaria de saber se tem como gerar planilha em uma maquina que não tem o Excel instalado.
Por isso indiquei aquelas 3 opções.
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2) "The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell" https://github.com/JoseQuintas/
José quintas em CSV é tranquilo, porem não tem formatação na planilha ai fica muito pouco profissional, quanto as outras duas opções vou ver se consigo achar algo a respeito.
Obrigado
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2) "The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell" https://github.com/JoseQuintas/