LoadReport from XML Example

Hi,

I am evaluating the WPF BI component. I would like my analyst to create the reports using the report client and have the xml loaded into another BI-based application. I can't seem to find an example that was mention in the documentation that loaded the XML from file and displayed the report. I need to have the C# code for the example since I am getting "Either the cube does not exist or has not been processed". I am using the same connection string as the report builder client"

This is a simple run-down of what I am going in my code:
olapDataManager = new OlapDataManager(connectionString);
olapDataManager.LoadReport(@"d:\development\sales_by_customer_type.xml");
olapgrid1.OlapDataManager = olapDataManager;
olapgrid1.DataBind();

Do I have to do something else to get this this to load?

Thanks
Steve

1 Reply

DM Dwaragesh M.B. Syncfusion Team May 10, 2010 04:49 AM UTC

Hi Steve,

Thank you for choosing Syncfusion Products.

Please try the below code,

// Instantiate the OlapDataManager using Connection String
OlapDataManager olapDataManager = new OlapDataManager(connectionString);
// Load the Report Collection to OlapDataManager
olapDataManager.LoadReports(@"d:\development\sales_by_customer_type.xml");
// Load a specific Report from the Report Collection by mentioning the report name
olapDataManager.LoadReport("Report1");
// Data Bind
olapgrid1.OlapDataManager = olapDataManager;
olapgrid1.DataBind();

Please feel free to contact us if you need further reference.

Thanks
Dwaragesh M.B.

Loader.
Up arrow icon