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

Free Support Forum - aspose.com

Cells content removed when opening XLSX files with aspose cells

Hi all,

I open an Excel file with Aspose Cells, then I save it in PDF format. The code is simple:

Dim AWB As Aspose.Cells.Workbook = New Aspose.Cells.Workbook()
AWB.Save(strFileNamePDF, Aspose.Cells.FileFormatType.Pdf)

In the output files somme cells are empty (like cell U11 in attached file). I know that the cell content is very complex:

Do you know if there is a turnaround, or if this issue is planed to be fixed in next releases ?



Thanks for providing the template file.

Please download and try our latest fix/version: Aspose.Cells for .NET v7.5.0.4 I have tested your scenario with it and it works fine. The cell formulas are evaluated fine and values are calculated fine to be rendered into PDF file.

Sample code:

Dim AWB As Aspose.Cells.Workbook = New Aspose.Cells.Workbook(strFileName)
AWB.Save(strFileNamePDF, Aspose.Cells.FileFormatType.Pdf)

I have also attached the output file for your reference.

Thank you.

Thanks for your answer.

Unfortunately, I still have an isue on my side. The value of IRR cells is not the same in XLSX file and PDF file (15.1 in XLSX and 4.7 in PDF).

I attach the 2 files.



Well, I have tested and it works fine. It looks like you might be using some older version in your project. Please make sure to use Aspose.Cells for .NET v7.5.0.x, I shared the link (for the fix) in my previous post, please try it and let us know your result. For confirmation, you may print the version number that is being used in your project, see the document for your reference:

Console.WriteLine("Assembly Version Info: " & CellsHelper.GetVersion())


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

Please use the workbook.CalculateFormula() method and your pdf will have correct values. We have generated the output pdf with the following code and found no issue. We have attached the output pdf file for your reference.

Please also download and try the latest version: Aspose.Cells
for .NET v7.5.0.5


string filePath = @“F:\Shak-Data-RW\Downloads\test+aspose+pdf.XLSX”;

Workbook workbook = new Workbook(filePath);


workbook.Save(filePath + “.out.pdf”, SaveFormat.Pdf);


You are right! I was missing CalculateFormula. Even with my 'older' version (7.4.3) it works now!

Thanks again.