Problemas de impressão I
Enviado: 02 Fev 2011 09:29
Num único cliente nosso dá a seguinte mensagem de erro quando vai imprimir :
Segue a função que faz isso :
Código: Selecionar todos
Error WScript.Shell/3 DISP_E_MEMBERNOTFOUND: RUN
Called from win32ole.prg->TOLEAUTO:RUN(0)
Called from FUNCAO44.PRG->MYRUN(172)
Called from FUNCAO44.PRG->FIMPUSB(141)
Código: Selecionar todos
// executa linha de comando substituindo o RUN
**************************
FUNCTION MYRUN( cComando )
**************************
local oShell, RET
oShell := CreateObject( "WScript.Shell" )
RET := oShell:Run( "%comspec% /c " + cComando, 0, .T. )
oShell := NIL
return iif( RET = 0, .T., .F. )