使用NPOI时,应将哪些文件添加到C#中的Visual Studio中 [英] When using NPOI which files should I add to Visual Studio in C#

查看:45
本文介绍了使用NPOI时,应将哪些文件添加到C#中的Visual Studio中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试从NPOI导入所有内容,但是之后我将无法再使用该库,因此我认为我正在导入错误的内容,因此,如果有人知道那会很棒.

I have been trying to import everything from NPOI but it won´t let me use the library afterwards, so I´m thinking I´m importing the wrong things so if anyone knows that would be great.

推荐答案

Brian在评论您的问题时指出.包括所有与NPOI相关的库的最佳方法是NUGet软件包管理器.成功安装后,所有需要的库将出现在当前项目的参考部分中.然后像

As pointed by Brian in comment to your question. Best way to include all library related to NPOI is NUGet Package Manager. Once it is successfully installed all needed library will appear in reference section of your current project. Then include the NPOI into your file like

using NPOI.SS.UserModel;
using NPOI.SS.Util;
using NPOI.XSSF.UserModel

这篇关于使用NPOI时,应将哪些文件添加到C#中的Visual Studio中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆