Office Open XML, POI, NPOI, EPPlus

这篇博客介绍了Office Open XML标准及其在Java中的实现POI,以及.NET平台上的NPOI和EPPlus库。POI是一个开源项目,用于操作Office文件,NPOI是其.NET版本,而EPPlus则提供了更强大的Excel .xlsx文件处理能力。文章还提及了MS Excel COM组件在服务器端使用时可能遇到的问题。
摘要由CSDN通过智能技术生成

对这几种之间的关系进和简要说明

Office Open XML

简称为 ooxml ,是Microsoft 在 Office 2007 之后推行的标准格式,用在 Excel, Word, PPT 等文件。已确定为国际标准。

POI

使用 Java 语言开发,基于 ooxml 标准,对Office文件进行操作的一个类库,为开源项目,放在GitHub上,现广泛应用。
https://github.com/apache/poi

NPOI

POI 项目的.Net 版本
https://github.com/tonyqus/npoi/

EPPlus

Excel Package Plus ,使用.Net 方式对 Office open xml (.xlsx) 格式的处理,功能更强大,风格也更接近于 Excel COM 方式,完全是 .Net 代码风格,而不象 POI/NPOI 采用的 Java 代码、命名及操作风格
https://github.com/JanKallman/EPPlus

"No valid entries or contents found, this is not a valid OOXML (Office Open XML) file" 这个错误是由于文档加密导致的。解决方法有两种。第一种是和领导要密码,以解密文档。第二种是通过在百度搜索word在线解密工具来解决。选择其中一种方法进行操作,就可以解决这个问题。 关于poi-tl,当把Excel文件放到resources目录下时,需要配置打包资源时不过滤。否则,在打包时会将Excel中配置的${变量名}进行转义。具体的pom配置如下: ``` <build> <resources> <resource> <directory>src/main/resources</directory> <filtering>false</filtering> <includes> <include>**/*.xlsx</include> </includes> </resource> <resource> <directory>src/main/resources</directory> <filtering>false</filtering> <excludes> <exclude>**/*.xlsx</exclude> </excludes> </resource> </resources> </build> ``` 通过以上的配置,可以确保在打包时不对Excel文件进行过滤,避免了${变量名}的转义问题。<span class="em">1</span><span class="em">2</span> #### 引用[.reference_title] - *1* [No valid entries or contents found, this is not a valid OOXML (Office Open XML) file](https://blog.csdn.net/weixin_45818332/article/details/128410847)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [easypoi 模板导出错误:No valid entries or contents found, this is not a valid OOXML (Office Open XML) ...](https://blog.csdn.net/dubhe_zhao/article/details/122410134)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值