I am trying to add a SparkLine to a worksheet and I am getting an error:
"The reference for the location or data range is invalid".
Here is my code:
CellArea cellArea = new CellArea();
cellArea.StartColumn = 0;
cellArea.EndColumn = 0;
cellArea.StartRow = 0;
cellArea.EndRow = 0;
int sparklineIndex = worksheet.SparklineGroupCollection.Add(SparklineType.Column, "'P&L Statement'!D8:O8", true, cellArea);
SparklineGroup group = worksheet.SparklineGroupCollection[sparklineIndex];
I am getting the error on Add method.
I am using version 7.3.4.0.
Thanks,
Mark