• 大小: 7.13M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-25
  • 语言: C#
  • 标签: Word  d  

资源简介

使用开源组件NPOI生成word,不依赖于Office,效率。稳定
 
【核心代码】
  protected static XWPFDocument CreatDocxTable()
        {
            XWPFDocument m_Docx = new XWPFDocument();
            XWPFParagraph p0 = m_Docx.CreateParagraph();
            XWPFRun r0 = p0.CreateRun();
            r0.SetText("DOCX表");

资源截图

代码片段和文件信息

using iTextSharp.text;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ExportExcelDemo
{
    class Class1
    {
        public void CreatePDF()
        {
            Document doc = new Document();
            Table tt = new iTextSharp.text.Table(6 1);

            tt.AddCell(“00“);
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.     70656  2015-08-30 18:06  ExportExcelDemo\.vs\ExportExcelDemo\v14\.suo

     文件        184  2015-08-28 16:46  ExportExcelDemo\ExportExcelDemo\App.config

     文件       5120  2015-08-28 15:20  ExportExcelDemo\ExportExcelDemo\bin\Debug\ExportExcelDemo.exe

     文件        157  2015-08-20 09:54  ExportExcelDemo\ExportExcelDemo\bin\Debug\ExportExcelDemo.exe.config

     文件      11776  2015-08-28 15:20  ExportExcelDemo\ExportExcelDemo\bin\Debug\ExportExcelDemo.pdb

     文件      21680  2015-08-28 15:25  ExportExcelDemo\ExportExcelDemo\bin\Debug\ExportExcelDemo.vshost.exe

     文件        157  2015-08-20 09:54  ExportExcelDemo\ExportExcelDemo\bin\Debug\ExportExcelDemo.vshost.exe.config

     文件        490  2015-07-10 19:01  ExportExcelDemo\ExportExcelDemo\bin\Debug\ExportExcelDemo.vshost.exe.manifest

     文件     200704  2013-03-06 07:13  ExportExcelDemo\ExportExcelDemo\bin\Debug\ICSharpCode.SharpZipLib.dll

     文件    1677312  2015-08-01 05:14  ExportExcelDemo\ExportExcelDemo\bin\Debug\NPOI.dll

     文件     472576  2015-08-01 05:14  ExportExcelDemo\ExportExcelDemo\bin\Debug\NPOI.OOxml.dll

     文件     467731  2015-08-01 05:14  ExportExcelDemo\ExportExcelDemo\bin\Debug\NPOI.OOxml.xml

     文件      90112  2015-08-01 05:14  ExportExcelDemo\ExportExcelDemo\bin\Debug\NPOI.Openxml4Net.dll

     文件     157387  2015-08-01 05:14  ExportExcelDemo\ExportExcelDemo\bin\Debug\NPOI.Openxml4Net.xml

     文件    1926656  2015-08-01 05:14  ExportExcelDemo\ExportExcelDemo\bin\Debug\NPOI.OpenxmlFormats.dll

     文件    2233327  2015-08-01 05:14  ExportExcelDemo\ExportExcelDemo\bin\Debug\NPOI.xml

     文件    8874496  2013-05-02 23:13  ExportExcelDemo\ExportExcelDemo\bin\x86\Debug\Aspose.Words.dll

     文件       7680  2015-08-30 16:16  ExportExcelDemo\ExportExcelDemo\bin\x86\Debug\ExportExcelDemo.exe

     文件        184  2015-08-28 16:46  ExportExcelDemo\ExportExcelDemo\bin\x86\Debug\ExportExcelDemo.exe.config

     文件      15872  2015-08-30 16:16  ExportExcelDemo\ExportExcelDemo\bin\x86\Debug\ExportExcelDemo.pdb

     文件      22696  2015-08-30 16:17  ExportExcelDemo\ExportExcelDemo\bin\x86\Debug\ExportExcelDemo.vshost.exe

     文件        184  2015-08-28 16:46  ExportExcelDemo\ExportExcelDemo\bin\x86\Debug\ExportExcelDemo.vshost.exe.config

     文件        490  2015-07-10 19:01  ExportExcelDemo\ExportExcelDemo\bin\x86\Debug\ExportExcelDemo.vshost.exe.manifest

     文件     200704  2013-03-06 07:13  ExportExcelDemo\ExportExcelDemo\bin\x86\Debug\ICSharpCode.SharpZipLib.dll

     文件    3567616  2015-08-04 14:47  ExportExcelDemo\ExportExcelDemo\bin\x86\Debug\itextsharp.dll

     文件    1677312  2015-08-01 05:14  ExportExcelDemo\ExportExcelDemo\bin\x86\Debug\NPOI.dll

     文件     472576  2015-08-01 05:14  ExportExcelDemo\ExportExcelDemo\bin\x86\Debug\NPOI.OOxml.dll

     文件     467731  2015-08-01 05:14  ExportExcelDemo\ExportExcelDemo\bin\x86\Debug\NPOI.OOxml.xml

     文件      90112  2015-08-01 05:14  ExportExcelDemo\ExportExcelDemo\bin\x86\Debug\NPOI.Openxml4Net.dll

     文件     157387  2015-08-01 05:14  ExportExcelDemo\ExportExcelDemo\bin\x86\Debug\NPOI.Openxml4Net.xml

............此处省略40个文件信息

评论

共有 条评论