登录
首页 » C# » NPOI控件源码与实例

NPOI控件源码与实例

于 2016-06-13 发布
0 217
下载积分: 1 下载次数: 2

代码说明:

NPOI控件源码与实例

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 使用Docx生成word档类及Docx.dll
    Docx生成word文档,可插入图片、表格等
    2014-09-21下载
    积分:1
  • c# 透明panel 示例代码
    c# 透明panel 示例代码
    2015-03-16下载
    积分:1
  • npoi 导出 excel 以及 office导出 excel 比较项目
    npoi 导出 excel 以及 office导出 excel 比较项目
    2013-11-25下载
    积分:1
  • asp.net大上传实例【附全部源码下载】
    可上传上小于1G的文件,可以配置Web.config文件来设定上传文件的大小。 完全基于.NET开发,无需任何客户端配置。 提供同步的上传进度条,显示实时上传进度信息。 不破坏页面逻辑,提供类似ASP.NET内置上传组件的使用方法。 不受 Server.ScriptTimeout(请求的超时设置) 影响,可配置服务器处理时间。
    2013-02-18下载
    积分:1
  • ICSharpCode.SharpZipLib.dll 压缩例子 并附完整ISharpZip项目源码
    ICSharpCode.SharpZipLib.dll 解压缩文件例子 并附完整ISharpZip项目源码
    2013-06-25下载
    积分:1
  • C# 操作pdf电子书 源码下载
    实现功能如下: 1.构造函数2.私有字段3.设置字体4.设置页面大小5.实例化文档6.打开文档对象7.关闭打开的文档8.添加段落9.添加图片10.添加链接、点
    2013-09-04下载
    积分:1
  • WCF大下载 例子源码
    WCF下载文档
    2014-11-05下载
    积分:1
  • C# 显示信息(大小、访问/修改时间、路径)示例
    C# 显示文件信息
    2013-02-11下载
    积分:1
  • 压缩示例(rar、zip、7zip、Gzip、tar...等)
    本程序是基于 sharpcompress-master 设计的演示程序。开原地址:https://github.com/adamhathcock/sharpcompress。1. 程序主要展示了压缩文件的解压缩,支持的文件类型有:rar、zip、7zip、Gzip、tar......等压缩格式,展示了密码解压、分卷解压、解压进度等功能。2. 不支持“带密码的分卷压缩文件”的解压;无密码分卷压缩、单个带密码文件正常解压。3. 此程序在设计中,对组件源代码进行了修改,与原组件代码对照查看。4、sharpcompress-master组件功能繁多,比如,文件压缩为图片、压缩文件内文件添加删除、更名等等,对照现有的压缩软件,功能均具备,可在代码中查看使用。本示例只是展示了解压缩功能。此程序为识别全部压缩格式,未引用DLL,全部为cs文件,如有错误,自行对照修正。private void Uncompress(string archiveFile, string destinationPath, string password = null) { var archive = ArchiveFactory.Open(archiveFile, new ReaderOptions() { Password = password, LeaveStreamOpen = true }); volumes = archive.Entries.Count(); archive.EntryExtractionBegin = archive_EntryExtractionBegin; archive.FilePartExtractionBegin = archive_FilePartExtractionBegin; archive.CompressedBytesRead = archive_CompressedBytesRead; Task.Run(() => { long order = 0; foreach (var entry in archive.Entries) { if (!entry.IsDirectory) { entry.WriteToDirectory(destinationPath, new ExtractionOptions() { ExtractFullPath = true, Overwrite = true, }); } order ; this.CrossThreadCalls(() => { if (volumes > 1) { progress[0].Value = CreatePercentage(order, volumes); } }); } MessageBox.Show("解压缩任务完成 !"); }); } private void archive_EntryExtractionBegin(object sender, ArchiveExtractionEventArgs e) { entryTotal = e.Item.Size; info_builde1 = "提取文件: " e.Item.Key ";"; } private void archive_FilePartExtractionBegin(object sender, FilePartExtractionBeginEventArgs e) { partTotal = e.Size; info_builde2 = "分卷:" e.Name ";"; } private void archive_CompressedBytesRead(object sender, CompressedBytesReadEventArgs e) { string percentage = entryTotal.HasValue ? CreatePercentage(e.CompressedBytesRead, entryTotal.Value).ToString() : "Unknown"; info_builde = info_builde1 info_builde2 "字节:" e.CompressedBytesRead ";百分比:" percentage "%"; this.CrossThreadCalls(() => { compress_Info.Text = info_builde; progress[1].Value = int.Parse(percentage) > 100 || int.Parse(percentage) < 0 ? 100 : int.Parse(percentage); if (volumes < 2) progress[0].Value = progress[1].Value; Application.DoEvents(); }); } private int CreatePercentage(long n, long d) { return (int)(((double)n / (double)d) * 100); }
    2019-07-21下载
    积分:1
  • c# 发送邮示例代码
    c# 发送邮件示例代码
    2015-03-26下载
    积分:1
  • 696518资源总数
  • 105873会员总数
  • 12今日下载