摘要:
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Text.RegularExpressions; namespace Tools
{ #region 配置文件类 ConfigFile /// <summary> /// 配置文件类 ConfigFile,内容存储到文件中,继承自配置接口 (一定要给ConfigFile.Instanse.fileName 赋值) /// </summary> public cl... 阅读全文
摘要:
.net操作Excel的支持库下载 http://115.com/file/c2hkh144#NOPI.zip以前用过依赖于office的方法对Excel文件进行操作,在自己机器上运行正常,到服务器上就不能运行。这个问题困扰了我好久,终于找到了好的解决方法 。使用不依赖于office的外部dll来操作Excel。。首先,我自己建立的类,NpoiHelper,用来进行Excel与DataSet之间的转化,放于自己的类库Tools中类的内容如下:using System;using System.Collections.Generic;using System.Text;using System. 阅读全文