Articles in this section
Category / Section

How to save the OLAP Report (.xml) programmatically?

1 min read

You can save the OLAP Report (*.xml) programmatically through code-behind and refer to the following code examples.

C#

protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        string connectionString = "Enter a valid connection string";
        DataManager = new OlapDataManager(connectionString);
        this.OlapClient1.OlapDataManager = DataManager;
        this.OlapClient1.DataBind();
    }
}
protected void Button1_Click(object sender, EventArgs e)
{
    this.OlapClient1.SaveReportSet("Sample.xml");
}

 

VB

Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
                If (Not IsPostBack) Then
                                Dim connectionString As String = "Enter a valid connection string"
                                DataManager = New OlapDataManager(connectionString)
                                Me.OlapClient1.OlapDataManager = DataManager
                                Me.OlapClient1.DataBind()
                End If
End Sub
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs)
                Me.OlapClient1.SaveReportSet("Sample.xml")
End Sub

 

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