Exception thrown when rendering a chart which is reconizable by Excel

Hi,

When I rendered an Excel chart to an image, I noticed it failed with exception.

Code:
var workbook = new Workbook(@".\test.xlsx");
workbook.Worksheets[0].Charts[0].ToImage(@".\out.emf");

The exception was:
System.ArgumentException: The numbers you specified can’t be used because the interval for the minor unittick marks must be less than or equal to the interval for the major unit tick marks!

I’m fully aware that Aspose failed because the interval settings of minor axis points was not valid.

However, the point I argue is that since MS Excel is able to still open the document and we are still able to copy the chart as picture from Excel manually (ctrl+c&v), Aspose should also be able to render the chart to an image, instead of throwing an exception and failing.

I’ve attached the test file for your reference. Could you please help me check the case?

test.zip (26.2 KB)

Thanks,

@ServerSide527,
We were able to observe the issue but we need to look into it more. We have logged the issue in our database for investigation and for a fix. Once, we will have some news for you, we will update you in this topic.

This issue has been logged as

CELLSNET-47086 – Exception thrown when rendering a chart

@ServerSide527,
This is to inform you that we have fixed your issue (logged earlier as “CELLSNET-47086”) now. We will soon provide you the fixed version after performing QA and incorporating other enhancements and fixes.

@ServerSide527,

Please try our latest version/fix: Aspose.Cells for .NET v20.3.2 (attached)

Your issue should be fixed in it.

Let us know your feedback.
Aspose.Cells20.3.2 For .Net2_AuthenticodeSigned.Zip (5.3 MB)
Aspose.Cells20.3.2 For .Net4.0.Zip (5.3 MB)

The issues you have found earlier (filed as CELLSNET-47086) have been fixed in Aspose.Cells for .NET v20.4. This message was posted using Bugs notification tool by Amjad_Sahi