I have a customized chart and i am not able to export that chart as image. I am getting error
"Value cannot be null.\r\n Parameter name: interior".
I am using the following code:.
Workbook workbook = new Workbook();
workbook.LoadFromFile(@"D:\Test Excel\Timeline.xlsx");
Worksheet sheet = workbook.Worksheets[0];
Image[] imgs = workbook.SaveChartAsImage(sheet);
for (int i = 0; i < imgs.Length; i++)
{
imgs[i].Save(string.Format("img-{0}.png", i), ImageFormat.Png);
}
The above code works fine for some graphs but for the attached excel it doesn't.