Author: Adrián BO_Worker developed from Julien Bras’ userlist utility.
Author notes: Excel 97-2003 VBA application. Displays some lists for users, groups, universes, reports… Only reading, not writing back. Please go to configuration sheet and fill Server, Username and Password in order to get it working. After that try the rest of sheets pressing the buttons to field the data below. Whenever you get orange cells that’s a place you should fill. If you get Id and Name to fill you can write one or the other. In names you usually can use % character. Some queries can take a long time (10-15 minutes) depending on your server and number of objects involved.
I hope it’s useful for someone and want to thank Julien Bras for previous programming. BOXIR3_Lists97.zip (108.0 KB)
Sriharsharp: I haven’t tried it for XIR2, I don’t know whether it works or not.
Vinayakb: It works for Excel 2003, but you should also have the correct libraries (XIR3 libraries) installed for your VBA. Could you please give me more details about your error?
Hello, you should change references for libraries in the macros. You should open the code (Alt+F11). Then go to Tools->References. You will see there are some references missing for Crystal Enterprise. You will have the same references below for another version. BOXIR3 version is 12, I think BOXIR2 version is 11.5. You should tick your own libraries to make it work.
Yes, you need SDK installed on your machine. You get it by installing client BOXI in your PC. After installing, as you are using BOXIR2 you will also need to rearrange VBA references in your excel file (as explained up here).
I have tried adapting the References (to ver 11.5) in Excel for BOXIR2, but still get caught with the error Set SessionManager = CreateObject(“CrystalEnterprise.SessionMgr”)
Are they any references I could be possibly missing here?
It would be an incredibly useful tool for me if I could just get it to work!
You need a reference to Crystal Enterprise Framework Library xx.x. After that, I use this code instead of CreateObject, so I don’t have to go figure out the class (appname.objecttype):
Dim mySessionMgr As CrystalEnterpriseLib.SessionMgr
Set mySessionMgr = New CrystalEnterpriseLib.SessionMgr
Thx a lot, that worked a treat.
I had already the reference to the Crystal Enterprise Framework library 11.5, but the change in code sorted it out perfectly!
Hi,
Thanks for this macro
But I have a problem. I want to list all universes used in each report. But with your macro I can have only one universe.
I have some report with 2 or more universe.
Do you know a solution to list all universes ?
Hi Dwayne,
There are several modules, where does this session manager go and do you also need to replace his “SessionManager” with your “mySessionMgr” through the code?
Sorry, not too familiar with VBA for BO and need a little spoon feeding here.
I found that you click on the Excel icon image on each tab to run it. After replacing the 8 12.0 Crystal references with the same 11.5 ones, I’m getting this error:
‘User-defined type not defined’
The help had this to say,
This happens on these lines:
Dim SessionManager As SessionMgr, Sess As SessionMgr
Dim esession As EnterpriseSession
The libraries I replaced in the References with 11.5 ones are:
Crystal Enterprise Framework
Crystal Enterprise InfoStore
Crystal Enterprise Plugin Manager
Crystal Enterprise User Plugin
Crystal Enterprise UserGroup PlugIn
Crystal Enterprise Report Plugin
Crystal Enterprise Universe PlugIn
Crystal Enterprise Webi PlugIn
How do I get past this error?
Oops, somehow it dropped the Framework Reference and caused this error. Also, I have noted that the session changes suggested by Dwyane must be added to each macro since they run independently.
[img]
Of course, now I’m timing out!
Our repository is big with 14,000 users and over 50,000 reports.
Any thoughts on how to break this code up and make it more manageable for large repositories?
I’ll see about increasing the timeout parameter, but I’d rather break the InfoStore queries into smaller, runable pieces within the default 9 minutes.[/img]