Skip to Content
0
Former Member
Jul 03, 2009 at 02:25 PM

BiarEngine

43 Views

Hi, I'm trying to use the .NET biarengine, to import / export InfoObject webi reports. I can export the biar but when importing it I get an exception telling me tha object 800 is not present. 800 is in fact the universe.

1) Is there existing any documentation or samples on Biars on .NET

2) Is there a possibility to Export / import a webi doc qwithout links as they are already presents

Export Code:

string lIsQuery = String.Format("select * from ci_infoobjects where si_kind='webi' and si_instance=0 and si_name=''", "testio");

InfoObjects lIsResult = lCmsInfoStore.Query(lIsQuery);

BiarEngine biarEngine = new BiarEngine(lCmsSession);

BiarOptions biarOptions = new BiarOptions();

biarOptions = BiarOptions.INCLUDE_FRS_FILES | BiarOptions.EXPORT_DEPENDENCIES;

biarEngine.ExportToXML(lIsResult, @"E:\temp\02 Test Biar\Test.biar", biarOptions);

Import code

Hashtable ImportParams = new Hashtable();

// ImportParams.Add(775,775); I DONT KNOW WHAT TI PUT HERE

// Not sure that it's correct root CUID how to get it?

biarEngine.ImportFromXML(@"E:\temp\02 Test Biar\Test.biar", "AXNWWTizCNNBrOt2AVUPfyE", ImportParams, biarOptions);

Thanks