Skip to Content
0
Former Member
Jul 22, 2008 at 02:25 PM

Retrieving list of tables from universe using universe sdk in c# .net

405 Views

Hello,

I wish to retrieve table information, create classes and objects in the universe using the universe sdk.

I am using Business Objects version XI 3 and vs 2005 c# .

My C# project as it stands uses the COM SDK component (i.e includes the BusinessObjects Designer 12.0 Object Library in its references [Interop.Designer]). I can open the universe and create classes and objects. However, I cannot get a list of tables currently existing in the universe. This works in VB i.e

Set ObjUniverse = ObjDes.Universes.Open(UniverseName)

For Each Tbl In ObjUniverse.Tables

Dim s As String

s = Tbl.Name

Next Tbl

but when I do it in C#, I get table not found....

for (int i = 0; i < Unv.Tables.Count; i++ )

{

Table tbl = Unv.Tables.get_Item(i);

string s = tbl.Name;

}

Can you please tell me how to get table information using c# with the com sdk?

Many Thanks