Comments (8)
请问,这个问题在NPOI中是否存在呢?能否帮忙做个测试
from npoi.
您好,我们之前的项目导出功能就是用的 .NET Framework 4的NPOI写的,也是用的模板导出,读取模板写入数据重新保存到其他地方,是没有问题的
现在的项目用上了.NET Core,之前一直没有Core的NPOI,前段时间找到了您的这个项目,试了一下有这个问题,但是用您的示例代码是没有问题的,也就是说新生成Excel是没有问题的
用模板导出的Excel有问题,但是经过Excel恢复数据,另存为新的,再打开就没事了,是不是文件头有问题呢?
from npoi.
好像 HSSFWorkbook
打开文件也会报错
只有 XSSFWorkbook
可以打开, 但是生成的excel文件a.xlsx就像 @martinyl 说的会提示文件损坏之类的
能不能看一下呀 @yuleyule66
var templateNameWithPath = @"abc.xls";
HSSFWorkbook workbook;
using (FileStream file = new FileStream(templateNameWithPath, FileMode.Open, FileAccess.Read))
{
workbook = new HSSFWorkbook(file);
}
from npoi.
EFPlus 在dnx里面比NPOI好用多了 @martinyl
from npoi.
@QBTomzhu 试一下 FileStream flush一下,看看有没有解决。
from npoi.
請問這個問題是不是還沒解決呢?
from npoi.
@AllenChen318084 抱歉这个问题我也解决不了,代码量太多,排查不到。
from npoi.
@QBTomzhu EpPlus好像不支持xls格式吧?大家一起完善Npoi.Core才是王道
from npoi.
Related Issues (20)
- Word document from .dotx Template
- NPOI version 1.2.2 not working with alpine 2.2
- Memory leak issue HOT 2
- A large amount of data is exported to excel
- [Word/*.docx] Can't set the correct font size
- [Word/.docx] How to clear a Cell in Word HOT 1
- Excel ICellStyle.Rotation not working
- create a new xlsx and write to memory stream HOT 5
- support for .net core 3.1
- In Excel, Result of GetPrintArea sometimes is null.
- How to set Date Range by NPOI?
- 插入图片无法设置格式 HOT 2
- 这个项目已经死亡了吗? HOT 2
- Please feedback issue to https://github.com/tonyqus/npoi
- Cannot "change" excel file
- @2.5.1 misbehavior of Comparision.Operator at DVConstraint.CreateDateConstraint for LibreOffice Calc v7.0.0.3(x64) HOT 2
- adding picture corrupts word document
- XSSFPicture.Resize method locks application execution
- Probleme witch docx
- Cannot update file - error in a saved excel file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from npoi.