登录
首页 » C# » 使用Docx生成word文档类及Docx.dll文件

使用Docx生成word文档类及Docx.dll文件

于 2014-09-21 发布
0 247
下载积分: 1 下载次数: 0

代码说明:

Docx生成word文档,可插入图片、表格等

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

发表评论

0 个回复

  • 压缩示例(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# 给pdf加背景图 例子源码下载
    C# 给pdf文件加背景图 例子源码下载
    2013-09-04下载
    积分:1
  • C#生成缩略图 实例源码
    最简单的生成缩略图原理,.net版本
    2013-01-16下载
    积分:1
  • c#测试上位机 实例源码下载
    c#上位机调试
    2017-04-01下载
    积分:1
  • C#批量更改名实例下载
    C#批量更改文件名实例下载
    2013-01-21下载
    积分:1
  • AutoCAD .NET开发指南-2012版》
    主要内容包括AutoCAD .NET API介绍、使用AutoCAD .NET API控制AutoCAD工作环境、创建及编辑AutoCAD实体、创建和编辑尺寸标注、3D图形处理、定义打印布局、打印输出、处理AutoCAD事件,以及使用Microsoft Visual Studio的错误处理、应用程序发布等。涵盖了AutoCAD .NET二次开发所涉及的所有基本任务。 在文档翻译后期,Autodesk公司发行了AutoCAD2014版。因此译者将指南中的示例代码在Microsoft Visual Studio2010SP1 AutoCAD2014环境下进行了测试(只测试了C#版代码),并将测试过程中发现的AutoCAD .NET API 2014版与AutoCAD .NET API 2012版的不同之处在本指南内作了标注。 由于译者英语水平及AUtoCAD二次开发水平和经验有限,肯定存在描述不准确的地方,欢迎大家指正并提出宝贵意见。
    2016-02-29下载
    积分:1
  • c# 透明panel 示例代码
    c# 透明panel 示例代码
    2015-03-16下载
    积分:1
  • Http连接操作帮助类
     Http连接操作帮助类,模拟post和get请求
    2014-12-09下载
    积分:1
  • C# 编码转换工具(支持UTF-8/UTF-7/Unicode/ASCII/GB2312(简体中)/BIG5 (繁体中)等编码转换 )
    文件编码转换工具,批量转换文件到UTF8,支持自识别原格式,支持备份。
    2019-06-28下载
    积分:1
  • C#web断点续传 例子源码下载
    C#web断点续传
    2015-04-10下载
    积分:1
  • 696516资源总数
  • 106409会员总数
  • 8今日下载