General information
Category:
Reports & Report designer
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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only