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.

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

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)

 

C#

 

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

C#

 

 

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.

C#

 

Article ID: Published Date: Last Revised Date: Platform: Control:
2758 11/21/2014 11/25/2014 Silverlight OlapClient
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.