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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to Save and Load Report from Database using “BeforeSaveReport” and “BeforeLoadReport” events

Platform: Silverlight |
Control: OlapClient

The BeforeSaveReport and BeforeLoadReport events has been used to modify the already existing save and load report methods in OlapClient. The reports created in the OlapClient can be saved and retrieved from the database using save report and load report button in the OlapClient Tool Bar. This can be achieved by handling “BeforeSaveReport” and “BeforeLoadReport” events. A WCF service needs to be created in the Web Project which helps to connect with the Database.


Steps to create a service for saving and loading the report to database


The following are the steps to service for saving and loading the report in Database.

  1. Create a WCF service in the Web Project namely ReportService.svc.
  2. The following codes need to be added in the interface of the created service. (here IReportService.cs)




  1. This interface should be implemented in the ReportService.svc.cs. Please refer the following codes.




Steps to save and load report in OlapClient

The saving and loading the OlapReport from database using the OlapClient Tool Bar buttons has been done with the help of “BeforeSaveReport” and “BeforeLoadReport” events.

This can be achieved by using following steps.

  1. Create the service reference in the Silverlight project for accessing the service which we created for connecting to database.
  2. The following code snippet should be added in Mainpage.cs of OlapClient Silverlight project.



You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

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

Live Chat Icon For mobile