on 08-20-2018 6:22 PM
we just switched from BO 4.1 to 4.2 and our Java/VBA applications that used BO SDK fail to connect to any of the 4.2 servers. they work fine for 4.1 servers. does anyone know if I need to be using a different syntax for connecting to 4.2 environments? any sample code connecting to 4.2 environments would be very helpful.
here is my excel VBA code:
Set sessionManager = CreateObject("CrystalEnterprise.SessionMgr")
Set Set eSession = sessionManager.Logon(userName, password, CMS, authType) Set
iStore = eSession.Service("", "InfoStore")
There were major updates to the security libraries with 4.2 SP4. While best practice is to always recompile your code using the latest libraries, it hasn't really mattered that much in the past. However, the new security requires that you remove ALL of the BOBJ libraries from your existing code and replace them with the new version (there are differences in the file names and you don't want the unneeded relics of the older version sitting out there!) Then recompile/redeploy with the new version.
-Dell
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It works for me.
Verify that you are using the correct DLL from the new version 4.2
Dim SessionManager As SessionMgr
Dim esession As EnterpriseSession
Dim iStore As InfoStore
Dim Users, Groups, AllGroups As InfoObjects
Dim UserItem, GroupItem As InfoObject
Dim UserObject As User
On Error GoTo ErrorHandler
Set SessionManager = CreateObject("CrystalEnterprise.SessionMgr")
Set esession = SessionManager.Logon(LoginName_tb, LoginPassword_tb, CMS_tb, "secEnterprise")
Set iStore = esession.Service("", "InfoStore")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks for your help. i'm using the following references for my VBA code lib.png
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
are you using the 4.2 libraries to build your project?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.