In my requirement, I want to read a temporary excel file which has charts in many sheets.(Chart is prepated in Ms excel itself).
Now when I am trying to open that excel file using workbook object my cursor is hang on that particular line neither I am not getting any error nor any success response. But same file is running properly if I removed chart from it. I have aspose.cells license(ver 220.127.116.11).log.zip (10.8 KB)
Below is my code. Also uploaded a excel file for your reference
public string SaveExcel()
var tempPath = @“D:\log.xlsx”;
Aspose.Cells.License licenseWord = new Aspose.Cells.License();
Aspose.Cells.Workbook workbook = new Aspose.Cells.Workbook(); Aspose.Cells.Workbook wtemp = new Aspose.Cells.Workbook(tempPath); Aspose.Cells.Worksheet sheetTemp = wtemp.Worksheets["sheet1"]; var t = sheetTemp.Charts.Count; return ""; }