Thanks for your posting and considering Aspose.Cells.
Please download and use the latest version:
Aspose.Cells for .NET (Latest Version)
Please see the code below how to take your chart image.
string filePath = @“D:\source.xlsx”;
Workbook workbook = new Workbook(filePath);
//Assume your chart is in first worksheet and it is the first chart
Chart yourChart = workbook.Worksheets.Charts;
Bitmap yourChartImg = yourChart.ToImage();
yourChartImg.Save(filePath + “.out.jpg”, ImageFormat.Jpeg);
Ok thanks… Can you tell me one more thing. I have added GridWeb to view an existing excel file. It opens the file, displays its first sheet, but I cant scroll a sheet, or view 2nd or 3rd sheet of the opened excel file. Can you help in this regard?
I am using the attached excel file that I have generated using Aspose.cells api. I am using latest msi installer and the GridWebControl verison is
v2.7.4.xxxx. I am using the following line of code for importing an excel file:
Thanks Amjad for your reply.
Its good idea to share this sample project with you. I have attached it herewith.
Its working now…
Regarding the earlier issue, it was solved as you guided.
CELLSNET-40531. We will look into it soon.