Archive for December 17th, 2011

Excel poisoning #9: customizing chart programmatically (C#)

December 17, 2011

Customize graph color.

Here is a brief sample, part III:

IOPXLS.Series chartSeries1st = myCharts.SeriesCollection(1) as IOPXLS.Series;
chartSeries1st.Format.Fill.ForeColor.RGB = (int)XlRgbColor.rgbOrange;

This snippet change color for 1st series of data.

Technorati tags: Excel, Csharp
Advertisements