Skip to content

XSSFWorkbook.SetForceFormulaRecalculation will not force recalc on open Excel book #1148

Closed
@kenjiuno

Description

@kenjiuno

I want to generate invoice xlsx using NPOI.
The invoice is not fully built by NPOI.
I use a hand made xlsx as a template.
Because it assumes that book is modified by software, there is sheet to hold variables.
The variables are just cells having names.

The issue is that in this way I need to use XSSFWorkbook.SetForceFormulaRecalculation = true;
But this doesn't work as expected.

I'll post simple xlsx files for this repro:

Base.xlsx
SetNameTaro-With-fullCalcOnLoad.xlsx
SetNameTaro-Without-fullCalcOnLoad.xlsx

If fullCalcOnLoad = true is activated around:

calcPr.calcId = 0;

XSSFWorkbook.SetForceFormulaRecalculation will work as expected.
So I want to ask to add fullCalcOnLoad = value line to the NPOI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions