VBA Business Objects: get report list

BaseBallBatBoy

New Member
Joined
Sep 12, 2011
Messages
24
Hi!

I'm new to VBA and also to BO in VBA. Now what I would like to do is get a list of all reports which are on a BO server instance (more precisely the path to the report and the report title itself). So, what do I need to do in order to achieve this if I have the following?

Dim BOobject As busobj.Application
Set BOobject = New busobj.Application
BOobject.Visible = False
BOobject.Interactive = False
' usr, pwd, cms, mode, ThreeTier, Offline are set elsewhere
BOobject.Logon(usr, pwd, cms, mode, ThreeTier, Offline)
' connection established, object ready for use

Also: Is there a handy website where I may look up all the methods of the BO specific objects?

Cheers
BBBB
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
I found the solution. It doesn't work with objects but it does if we query the infostore directly.

Dim ceSessionManager As Object
Dim ceSession As Object
Dim ceInfoStore As Object
Dim report As Object
Dim reportsQuery As Object

Dim reportName As String

Set ceSessionManager = CreateObject("CrystalEnterprise.SessionMgr")
Set ceSession = ceSessionManager.Logon(usr, pwd, cms, mode)
Set ceInfoStore = ceSession.Service("", "InfoStore")

Set reportsQuery = ceInfoStore.query("SELECT top 1000000 SI_ID, SI_NAME, SI_PARENTID FROM CI_INFOOBJECTS WHERE SI_KIND ='FullClient'")

For Each report In reportsQuery
reportName = report.Properties("SI_NAME") + ".rep"
.... do more stuff in here....
Next
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,256
Members
452,901
Latest member
LisaGo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top