Git Product home page Git Product logo

Comments (13)

Bykiev avatar Bykiev commented on July 19, 2024

Hi, can you please explain in details the issue. NPOI hasn't direct dependency on this library
https://www.nuget.org/packages/NPOI/#dependencies-body-tab

from npoi.

softboy99 avatar softboy99 commented on July 19, 2024

Hi,
it's enum.net issue,i have post it to its github site. but now i have another issue, how to open an password protected excel for reading? Is it possible for the 2.7 version?

code:

fs = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read);
WorkbookFactory.Create(fs, true);

exception: “RemoveDataValidation” has not been implemented

from npoi.

Bykiev avatar Bykiev commented on July 19, 2024

Password protection is only available for xlsx files:

IWorkbook workbook = WorkbookFactory.Create("encryped.xlsx", "password");

from npoi.

softboy99 avatar softboy99 commented on July 19, 2024

don't know password

from npoi.

softboy99 avatar softboy99 commented on July 19, 2024

in addition, the enums.net lib author seems doesn't maintian any more :

TylerBrinkley/Enums.NET#42

from npoi.

Bykiev avatar Bykiev commented on July 19, 2024

don't know password

I you don't know the password, you can't open such file.

from npoi.

tonyqus avatar tonyqus commented on July 19, 2024

don't know password

This is illegal. We don't provide this kind of feature.

from npoi.

tonyqus avatar tonyqus commented on July 19, 2024

@softboy99 I checked Enums.NET nuget just now. The last version is just released 3 month ago. Why do you say it's not maintained anymore? Any clues?

from npoi.

tonyqus avatar tonyqus commented on July 19, 2024

Only one question in one issue. If you have other question, please open a new issue. Thanks

from npoi.

softboy99 avatar softboy99 commented on July 19, 2024

在 System.MemoryExtensions.AsSpan(String text)
在 NPOI.SS.Util.CellReference..ctor(String cellRef) 在 C:\Users\ander\Downloads\npoi-master\main\SS\Util\CellReference.cs 中: 第 84 行
在 NPOI.XSSF.UserModel.XSSFCell..ctor(XSSFRow row, CT_Cell cell) 在 C:\Users\ander\Downloads\npoi-master\ooxml\XSSF\UserModel\XSSFCell.cs 中: 第 93 行
在 NPOI.XSSF.UserModel.XSSFRow..ctor(CT_Row row, XSSFSheet sheet) 在 C:\Users\ander\Downloads\npoi-master\ooxml\XSSF\UserModel\XSSFRow.cs 中: 第 285 行
在 NPOI.XSSF.UserModel.XSSFSheet.InitRows(CT_Worksheet worksheetParam) 在 C:\Users\ander\Downloads\npoi-master\ooxml\XSSF\UserModel\XSSFSheet.cs 中: 第 4054 行
在 NPOI.XSSF.UserModel.XSSFSheet.Read(Stream is1) 在 C:\Users\ander\Downloads\npoi-master\ooxml\XSSF\UserModel\XSSFSheet.cs 中: 第 1221 行
在 NPOI.XSSF.UserModel.XSSFSheet.OnDocumentRead() 在 C:\Users\ander\Downloads\npoi-master\ooxml\XSSF\UserModel\XSSFSheet.cs 中: 第 1201 行

from npoi.

softboy99 avatar softboy99 commented on July 19, 2024

image

from npoi.

tonyqus avatar tonyqus commented on July 19, 2024

Can you create a single console project and reproduce the issue? I'm afraid the issue you are encountering is somewhat related to your package reference in your project.

According to the call stack, this issue is caused by AsSpan method. It's nothing to do with Enums.NET.

from npoi.

Bykiev avatar Bykiev commented on July 19, 2024

@softboy99, check the binding redirects for System.Runtime.CompilerServices.Unsafe

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.