Formulas not working on Save to PDF

We save an excel worksheet to PDF using
wbk.save(baos, SaveFormat.PDF);

We are using version 21.2, just purchased.

Cells that contain formulas are empty on the PDF.

Are formulas supported?

Thanks.

@jwksmith,

Formulas are supported in PDF as well. You have to call calculate formula function before saving the workbook as follows:

...
...
workbook.CalculateFormula();
workbook.Save("outputFile.pdf");

If you still face some issue, please share your sample Excel file, runnable console application and output Pdf file for our reference. We will analyze your issue and share feedback accordingly.

That works! Thanks very much for the quick reply. I am impressed!

@jwksmith,
You are welcome.