Reputation: 87
I'm using closedxml to generate and download an xlsx file from a .NET c# application
Is there a way to display the formulas output numbers without the user having to click Enable Editing after downloading and opening the file in excel?
Upvotes: 6
Views: 2612
Reputation: 4849
There is an overload which allows you to evaluate formulas when saving the file. It's disabled by default.
void Save(Boolean validate, Boolean evaluateFormulae = false);
void SaveAs(String file, Boolean validate, Boolean evaluateFormulae = false);
Upvotes: 8