Information générale
Catégorie:
Gestionnaire de rapports & Rapports
Sorry, do not understand your question. The code you posted does not work for you?
>Have you ever tried KillExcel ?
>I saw it on one of the threads a couple of months ago.
>
>PROCEDURE KillExcel
>LOCAL lnHandle , lnIsVisible
>DECLARE LONG FindWindow IN WIN32API ;
> STRING lpClassName, STRING lpWindowName
>
>lnHandle = FindWindow( "XLMAIN", NULL )
>
>IF lnHandle > 0
> DECLARE LONG IsWindowVisible IN WIN32API LONG hwnd
>
> lnIsVisible = IsWindowVisible( lnHandle )
>
> IF lnIsVisible = 0
>
> DECLARE LONG PostMessage IN WIN32API ;
> LONG hwnd, LONG wMsg, LONG wParam, LONG lParam
>
> PostMessage( lnHandle, 0x10, 0, 0)
>
>*!* WAIT WINDOW "Killed an Excel Instance" TIMEOUT 1
> ENDIF
>ENDIF
>ENDPROC
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement