资源简介

利用c#对自动生成word报告,包括自动填写文字,更新图片、表格、目录

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using StrikesRiskAssessment;
using word操作实例;
using Microsoft.Office.Interop.Word;
using System.IO;
using System.Collections;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        List stringList = new List();

        private List GetStringList()
        {
            List TmpstringList = new List();

            TmpstringList.Add(“评估单位 “ + curPrject.ProjectName);
            TmpstringList.Add(“图1to10土壤电阻率表 d:\\1.jpg“);
      

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

     文件      64512  2009-04-12 15:39  单建筑\WindowsFormsApplication1\bin\Debug\RiskAssessmentCalcuCore.dll

     文件      44544  2009-04-13 16:04  单建筑\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe

     文件      50688  2009-04-13 16:04  单建筑\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb

     文件      11600  2009-04-15 13:17  单建筑\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe

     文件        490  2010-03-17 22:39  单建筑\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.manifest

     文件      39391  2009-04-13 16:04  单建筑\WindowsFormsApplication1\Form1.cs

     文件       3183  2009-04-12 10:43  单建筑\WindowsFormsApplication1\Form1.Designer.cs

     文件       5817  2009-04-12 10:43  单建筑\WindowsFormsApplication1\Form1.resx

     文件       4440  2009-04-06 15:11  单建筑\WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6721  2009-04-13 16:04  单建筑\WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        364  2009-04-13 16:04  单建筑\WindowsFormsApplication1\obj\x86\Debug\GenerateResource.read.1.tlog

     文件        894  2009-04-13 16:04  单建筑\WindowsFormsApplication1\obj\x86\Debug\GenerateResource.write.1.tlog

     文件      44032  2009-04-13 12:42  单建筑\WindowsFormsApplication1\obj\x86\Debug\Interop.VBIDE.dll

     文件      10321  2009-04-13 12:42  单建筑\WindowsFormsApplication1\obj\x86\Debug\ResolveAssemblyReference.cache

     文件       2634  2009-04-15 13:17  单建筑\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.csproj.FileListAbsolute.txt

     文件        905  2009-04-13 12:42  单建筑\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.csproj.ResolveComReference.cache

     文件      44544  2009-04-13 16:04  单建筑\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.exe

     文件        180  2009-04-13 16:04  单建筑\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.Form1.resources

     文件      50688  2009-04-13 16:04  单建筑\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.pdb

     文件        180  2009-04-13 16:04  单建筑\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.Properties.Resources.resources

     文件        505  2009-04-06 13:45  单建筑\WindowsFormsApplication1\Program.cs

     文件       1380  2009-04-02 13:04  单建筑\WindowsFormsApplication1\Properties\AssemblyInfo.cs

     文件       2896  2009-04-02 13:04  单建筑\WindowsFormsApplication1\Properties\Resources.Designer.cs

     文件       5612  2009-04-02 13:04  单建筑\WindowsFormsApplication1\Properties\Resources.resx

     文件       1107  2009-04-02 13:04  单建筑\WindowsFormsApplication1\Properties\Settings.Designer.cs

     文件        249  2009-04-02 13:04  单建筑\WindowsFormsApplication1\Properties\Settings.settings

     文件       4980  2009-04-12 15:55  单建筑\WindowsFormsApplication1\WindowsFormsApplication1.csproj

     文件      13815  2009-04-13 12:42  单建筑\WindowsFormsApplication1\WordOperationClass.cs

     文件        914  2009-04-02 13:04  单建筑\WindowsFormsApplication1.sln

    ..A..H.     27648  2009-04-15 13:43  单建筑\WindowsFormsApplication1.suo

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

评论

共有 条评论