I use the Gembox.Spreadsheet dll to convert a Excel document to PDF by:
ExcelFile.Load(formExcelPath).Save(formPdfPath);
Which works as expected except for one thing: values which are calculated from formulas show up in the PDF as if they were never calculated.
From Gembox's site , it says "Formulas can't be exported to CSV, HTML, PDF or XPS file formats."
However, I do not want to export the formulas, I just want the values present in the cell. Is there a workaround for this? Some way of forcing formulas to be calculated before the conversion to PDF?
EDIT 28-09-2016:
We have released a new version of GemBox.Spreadsheet (version 4.1) in which we implemented a support for cell formula calculation, see the version history page.
Also, you can find the calculation example here.
ORIGINAL ANSWER
Unfortunately the problem is that currently GemBox.Spreadsheet (version 3.9) does not have a calculation engine.
In other words it is able to read the last calculated values from the input file, but it's unable to recalculate formula results on its own.
Note that we do have this feature request in our collection and please feel free to vote for it in order to boost its priority.
But at this moment I cannot tell you exactly when it will be implemented, this feature is not in our current roadmap.