A
Ashok
I use code below in windows application using Pivot table to display cube
data. The problem is if I don't insert any fields then I see scroll bar in
Pivot table but as soon as I put this line
objPTView.RowAxis.InsertFieldSet(objPTView.FieldSets["FieldName"], null,
false);
application opens with one field in Pivot table but scroll bar don't show
up. I don't know how to fix this and it's almost going to kill my project if
I don't.
Thank you - Ashok
public void LoadCustomPivotTableReport()
{
string m_XML;
string strOLAPConn =
ConfigurationSettings.AppSettings["OLAPConnectionString"];
PivotTableClass objPT = new PivotTableClass();
PivotView objPTView;
PivotField fldCity;
PivotField fldName;
PivotField fldProdFamily;
PivotFieldSet fSet;
PivotFieldSet fSetProduct;
try
{
objPT.ConnectionString = strOLAPConn;
objPT.DataMember = "CubeName";
objPT.AllowFiltering = true;
objPTView = objPT.ActiveView;
objPTView.RowAxis.InsertFieldSet(objPTView.FieldSets["FieldName"], null,
false);
axPivotTable1.XMLData = objPT.XMLData;
}
catch (Exception err)
{
m_XML = "<err>" + err.Source + " - " + err.Message + "</err>";
}
finally
{
}
}
data. The problem is if I don't insert any fields then I see scroll bar in
Pivot table but as soon as I put this line
objPTView.RowAxis.InsertFieldSet(objPTView.FieldSets["FieldName"], null,
false);
application opens with one field in Pivot table but scroll bar don't show
up. I don't know how to fix this and it's almost going to kill my project if
I don't.
Thank you - Ashok
public void LoadCustomPivotTableReport()
{
string m_XML;
string strOLAPConn =
ConfigurationSettings.AppSettings["OLAPConnectionString"];
PivotTableClass objPT = new PivotTableClass();
PivotView objPTView;
PivotField fldCity;
PivotField fldName;
PivotField fldProdFamily;
PivotFieldSet fSet;
PivotFieldSet fSetProduct;
try
{
objPT.ConnectionString = strOLAPConn;
objPT.DataMember = "CubeName";
objPT.AllowFiltering = true;
objPTView = objPT.ActiveView;
objPTView.RowAxis.InsertFieldSet(objPTView.FieldSets["FieldName"], null,
false);
axPivotTable1.XMLData = objPT.XMLData;
}
catch (Exception err)
{
m_XML = "<err>" + err.Source + " - " + err.Message + "</err>";
}
finally
{
}
}