Hi guys,
Hi,
Amjad,
Hi,
I can notice the issue as you have mentioned. The conditional formatting is not applied to the pivot table field values. I even tried to call RefreshData and CalculateData methods of pivot table etc.
I have logged a ticket for your issue with an id: CELLSNET-40688. We will look into your issue soon.
Thank you.
Hi,
Hi,
Hi,
Thanks for your input.
I noticed, you are right. I have tested your code with the latest version:
Aspose.Cells for .NET (Latest Version)
I am attaching the output xlsx file.
Could you please download it and manually rectify it by applying your conditional formattings and save it with different name? We need your expected output file, it will help us quickly sort out your issue.
Also, I have logged your comment against the issue id: CELLSNET-40688
Below is a screenshot for a reference.
Screenshot:
Thanks for the speedy response.
Hi,
Thank you for providing the expected output file.
We will soon look into it and provide you a sample code. If there is some bug, we will fix it and let you know asap.
Below is a screenshot for a reference.
Screenshot:
Hi,
Please download and try this fix: Aspose.Cells for .NET (Latest Version)
sample code:
var fc =
pivotTable.PivotFormatConditions[pivotTable.PivotFormatConditions.Add()];
fc.ScopeType = PivotConditionFormatScopeType.data;
FormatConditionCollection fcs =
fc.FormatConditions;
CellArea area = new CellArea
{
StartRow = 1,
EndRow =
1,
StartColumn = 2,
EndColumn =
2
};
FormatCondition condition = fcs[fcs.Add(area,
FormatConditionType.DataBar, OperatorType.Equal, "", "")[0]];
condition.Type = FormatConditionType.DataBar;
DataBar bar =
condition.DataBar;
bar.MinLength = 0;
bar.MaxLength = 100;
bar.MinCfvo.Type =
FormatConditionValueType.AutomaticMin;
bar.MinCfvo.Value =
0;
bar.MaxCfvo.Type =
FormatConditionValueType.AutomaticMax;
bar.MaxCfvo.Value =
1;
bar.Color = Color.FromArgb(99,195,132);
bar.ShowValue = true;
bar.BarBorder.Type =
DataBarBorderType.DataBarBorderSolid;
bar.BarBorder.Color =
Color.FromArgb(99, 195, 132); ;
bar.BarFillType = DataBarFillType.DataBarFillGradient;
The issues you have found earlier (filed as CELLSNET-40688) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.