Hi Team,
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 7.3.4.0).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();
licenseWord.SetLicense(CommonBL.GenerateStreamFromString(CommonBL.GenerateStringFromBytes(Properties.Resources.Aspose_Total)));
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 "";
}