on 10-16-2008 12:02 PM
Dear All Experts,
We have succeeded to develop SDK code or addon that used to be a report launcher of our crystal report. We use VB6 to develop it.
After SAP B1 closed, in the windows task manager --> tab applications, there are still catching event running.
how to resolve this issue ? Pls give advice. I appreciate it so much.
Steve
Steve,
try to add this following code in the application event:
Private Sub SBO_Application_AppEvent(ByVal EventType As SAPbouiCOM.BoAppEventTypes)
If EventType = SAPbouiCOM.BoAppEventTypes.aet_CompanyChanged Or EventType = SAPbouiCOM.BoAppEventTypes.aet_ShutDown
Then
End
End If
End Sub
let me know if you still can't resolve it.
Rgds,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
thx for your answers. it works well
Steve
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
beside the right code from jimmy (that code should help you) also add
Private Sub Class_Terminate()
End
End Sub
in your SBO class - this combined with jimmy's code should always close
the application
lg David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi..
Try this one..
System.Windows.Forms.Application.Exit()
replace of u give
Close()
Regards..
Billa 2008
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Thx for answer but the result is not okay yet.
The syntax :
Application.Exit()
become red color words in the VB. How to resolve it ?
Steve
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi steve,
while building the Application what error it says..
Are you added the reference for system.windows.form ?
if not add the reference for that(Add reference-->in NET tab select reference system.windows.form)
in Application properties check the system.windows.form in imported name spaces option)
if not clear with this let me know..
Regards,
Ganesh K
Hi steve,
in solution explorer right click of your application you can find properties..there you can have application,compile,debug,references,resources etc.....
the other way is,
once you added the reference for System.Windows.Forms,
just use
Imports System.Windows.Forms in your coding..
that also enough.....
Regards,
Ganesh k
Hi steve,
use the following code in application event..
Private Sub sbo_application_AppEvent(ByVal EventType As SAPbouiCOM.BoAppEventTypes) Handles sbo_application.AppEvent
Select Case EventType
Case SAPbouiCOM.BoAppEventTypes.aet_ShutDown, SAPbouiCOM.BoAppEventTypes.aet_CompanyChanged
Application.Exit()
End Select
End Sub
Regards,
Ganesh K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Add below code in Application Event.
Private Sub SBO_Application_AppEvent(ByVal EventType As SAPbouiCOM.BoAppEventTypes) Handles SBO_Application.AppEvent
If EventType = SAPbouiCOM.BoAppEventTypes.aet_CompanyChanged Or EventType = SAPbouiCOM.BoAppEventTypes.aet_ShutDown Then
System.Windows.Forms.Application.Exit()
End If
End Sub
this kills the addon application process on stopping addon or SAP B1
regards,
varma
Edited by: Varma on Oct 16, 2008 4:36 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.