Articles in this section
Category / Section

How to add specific Level element in OlapReport

1 min read
  1. How to add specific Level element in OlapReport

 

1.1      Description

We can able to add a specific Level Element in OlapReport using below codesnippet.

 

[C#]

 

OlapReport olapReport = new OlapReport();

olapReport.CurrentCubeName = "my_cube";

 

//// Creating a dimension element object

DimensionElement dimensiontElementProduct = new DimensionElement();

dimensiontElementProduct.Name = "my_dim";

dimensiontElementProduct.AddLevel("my_hierarchy", "my_level");

 

olapReport.SeriesElements.Add(new Item { ElementValue = dimensiontElementProduct });

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
Access denied
Access denied