question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Formulas Not caliculated until open is opened

See original GitHub issue

Same issue https://github.com/ClosedXML/ClosedXML/issues/653

Workaround

var memoryStream = new MemoryStream();
template.Workbook.SaveAs(memoryStream, true, true);
memoryStream.Seek(0, SeekOrigin.Begin);

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
b0bi79commented, Jun 3, 2020

Oh thanks. Sorry, I misunderstood you.

I will add overloading to XLTemplate.SaveAs.

To get around this issue in the current version, you can call the save as follows.

template.Workbook.SaveAs("file.xlsx", true, true);
0reactions
raeesgillanicommented, Jul 10, 2021

But you’ve provided using array formulas here as an example?: https://github.com/ClosedXML/ClosedXML/wiki/Using-Formulas

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Excel Formulas that are Not Calculating or ...
Learn what to do when your formulas are not updating until you save or hit enter. You may have to adjust the Calculation...
Read more >
Excel formulas not working, not updating, not calculating
Excel formulas not working · 1. Match all opening and closing parentheses in a formula · 2. Enter all required arguments in an...
Read more >
My formula only works when all the files are open unless I ...
The formula works great as long as both files are open. However, if I open FILE A by itself, I get error messages...
Read more >
Excel Formulas Not Calculating? How to Fix it Fast
On the Formulas ribbon, look to the far right and click Calculation Options. On the dropdown list, verify that Automatic is selected. Fred...
Read more >
How to fix Excel formulas not calculating (Refresh Formulas)
1. Go to the Formulas tab. 2. Click on Calculation Options. 3. Set calculation settings to Automatic. Read other methods here, step-by-step.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found