We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Chart export to image giving a strange line


I met an issue that when I exported a chart to an image (Exported Chart.JPG) from an excel file (Original Source.xlsx), it gave me a strage line on the left axis.

See the attachment.

My Code is as blow:

Dim wb = New Workbook(“D:\Original Source.xlsx”)
Dim bitmap = wb.Worksheets(1).Charts(0).ToImage()
bitmap.Save(“D:\Exported Chart.JPG”, ImageFormat.Jpeg)


Thanks for your posting and using Aspose.Cells for .NET.

We were able to replicate this issue using your source file and the code. We have logged this issue in our database. We will look into this issue and resolve it. Once the issue is resolved or we have some other update for you, we will let you know asap.

This issue has been logged as CELLSNET-41602.


Please try our latest fix/version: Aspose.Cells for .NET v7.4.3.1

We have fixed your issue regarding strange line.

Let us know your feedback.

Thank you


Thanks for your help. my issue was solved by the newest version.

Best wishes


Thanks for your feedback.

It’s good to know your issue is resolved with the latest version. If you encounter any other issue, please feel free to post, we will be glad to help you further.