I’ve tried to access previously created chart (by Excell) in XLS workbook, but failed.
Here is the code (pretty simple)
Workbook _wb = new Workbook();
Chart _shape = _wb.Worksheets.Charts; <-- breaks here and Charts.Count == 0
Could you please advise?
Please use Workbook.Open() method instead of LoadData(). The LoadData() method only loads data and formulas etc.
Aspose.Cells.Workbook workbook = new Aspose.Cells.Workbook();
Aspose.Cells.Chart chart = workbook.Worksheets.Charts;
I tried the above code and it works fine.
Thaks a lot Amjad, I haven’t realized that there are several ways to load XLS, shame on me.