on 05-01-2015 11:25 AM
Hi
In the below code everytime it is giving message "No SAP Business One Application was found". Sap is open & add-on is also running. I am in debugging mode checking code. Command line arguments are 0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056
Private Sub SetApplication()
Dim sConnectionString = Environment.GetCommandLineArgs.GetValue(1)
Try
SboGuiApi.Connect(sConnectionString)
SBO_Application = SboGuiApi.GetApplication()
oCompany = New SAPbobsCOM.Company
oCompany = SBO_Application.Company.GetDICompany()
Catch ex As Exception
SBO_Application.MessageBox("No SAP Business One Application was found")
GC.Collect()
End Try
End Sub
Public Sub New()
MyBase.New()
Try
SetApplication()
AddMenuItems()
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub
Hi Sonu,
this sounds like a 32/64 bit issue.
Start 32 bit client and compile/run your program for x86.
regards,
Maik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
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.