Articles in this section
Category / Section

How to integrate the OlapClient WPF Control in Asp.net application

1 min read

This can be achieved by creating a WPF Browser Application with OlapClient Control and hosting that XBAP in Asp.Net application.

Creating a WpfBrowser Application

The following are the steps to create WPF Browser Application.

  1. Create a WPF Browser Application Project in VisualStudio 2012.
  2. Add the OlapClient control in Mainpage.xaml and bind the OlapData.
  3. Open Properties window of that WPF Browser Application
  4. Click on Application Tab
  5. Ensure that Target Framework must be .NET Framework 3.5/4/4.5(to use Syncfusion Controls)
  6. Click on Security Tab
  7. Select “This is full trust application” Radio Button.
  8. Run the WPF Browser Application, WPF OlapClient will be rendered in browser.

 

The following is the screenshot of the Output.

 

 

 

 

Creating Asp.Net Application and Integrating the XBAP

The steps to create the Asp.Net application and integrating the XBAP into that application is as follows:

  1. Create Asp.Net web application in Visual Studio 2012.
  2. Create a folder in that Asp.Net web application and move the following files which are created in WPF Browser Application,
  • .xbap
  • .exe
  • .exe.manifest
  • .exe.config
  1. In Default.aspx page, add any object of your convenience(For Ex: iframe), set runat attribute as “server” and src attribute as “~/<foldername>/test.xbap
  2. Run the ASP.Net web Application, WPF OlapClient will be rendered in .aspx page with help of .xbap file.

The following screenshot shows how the OlapClient Control is displayed in Asp.Net application.

 

 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments
Please sign in to leave a comment
Access denied
Access denied