GithubHelp home page GithubHelp logo

Cell Formula about npoi HOT 1 CLOSED

Taha-Di-Nero avatar Taha-Di-Nero commented on May 29, 2024
Cell Formula

from npoi.

Comments (1)

Taha-Di-Nero avatar Taha-Di-Nero commented on May 29, 2024

Hi,
Upgrading to Savorboard.NPOI.Core.Ooxml 1.1.4 (was using DotNetCore.NPOI 1.0.0), the problem change to the line when formula are evaluated

WorkbookFactory.CreateFormulaEvaluator(wb).EvaluateAll();
At this line an exception is thrown:

$exception {System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Npoi.Core.SS.Formula.WorkbookEvaluator.GetSheetIndex(IEvaluationSheet sheet)
at Npoi.Core.SS.Formula.WorkbookEvaluator.Evaluate(IEvaluationCell srcCell)
at Npoi.Core.XSSF.UserModel.XSSFFormulaEvaluator.EvaluateFormulaCellValue(ICell cell)
at Npoi.Core.XSSF.UserModel.XSSFFormulaEvaluator.EvaluateFormulaCell(ICell cell)
at Npoi.Core.HSSF.UserModel.HSSFFormulaEvaluator.EvaluateAllFormulaCells(IWorkbook wb, IFormulaEvaluator evaluator)

Removing that line everything work fine and somehow when I open the generated xlsx file formula are already evaluated.
Nb: I had ported an export using java apache poi code to .net core and in java was a must eveluting formula before closing WorkBook

Thanks for saving me a lot of time.

from npoi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.