Why does setting a color to a cell not work (Aspose Cells)?
<p>I have this code to try to set the background color of a cell (among other things):</p>

<pre><code>private static readonly Color CONTRACT_ITEM_COLOR = Color.FromArgb(255, 255, 204);
. . .
cell = pivotTableSheet.Cells[4, 0];
cell.PutValue(AnnualContractProductsLabel);
style = cell.GetStyle();
style.HorizontalAlignment = TextAlignmentType.Center;
style.VerticalAlignment = TextAlignmentType.Center;
style.Font.IsBold = true;
pivotTableSheet.Cells.SetRowHeight(4, 25);
style.BackgroundColor = CONTRACT_ITEM_COLOR;
pivotTableSheet.Cells[4, 0].SetStyle(style);
</code></pre>

<p>The setting of horizontal and vertical alignment works, as does bold and height - everything but color:</p>

<p><a href="https://i.stack.imgur.com/zLaTH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zLaTH.png" alt="enter image description here"></a></p>

<p>What is yet needed? I have even tried setting ForegroundColor as well as Background colors, to :</p>

<pre><code>style.ForegroundColor = Color.Red;
style.BackgroundColor = Color.Blue;
</code></pre>

<p>...but neither does anything - the cell still looks exactly the same as the screenshot above.</p>