We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

LoadReport from XML Example

Thread ID:

Created:

Updated:

Platform:

Replies:

94337 May 7,2010 12:52 PM UTC May 10,2010 04:49 AM UTC WPF 1
loading
Tags: OlapGrid
Stephen Sinclair
Asked On May 7, 2010 12:52 PM UTC

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

Dwaragesh M.B. [Syncfusion]
Replied On 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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;