• 大小: 597.63 KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2024-10-23
  • 语言: C#
  • 标签: C#创建word  datatable  

资源简介

C#创建word并保存 可以保存datatable的数据到word

资源截图

代码片段和文件信息

using System.Reflection;
using System.Runtime.CompilerServices;

//
// General Information about an assembly is controlled through the following 
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly: Assemblytitle(““)]
[assembly: AssemblyDescription(““)]
[assembly: AssemblyConfiguration(““)]
[assembly: AssemblyCompany(““)]
[assembly: AssemblyProduct(““)]
[assembly: AssemblyCopyright(““)]
[assembly: AssemblyTrademark(““)]
[assembly: AssemblyCulture(““)]

//
// Version information for an assembly consists of the following four values:
//
//      Major Version
//      Minor Version 
//      Build Number
//      Revision
//
// You can specify all the values or you can default the Revision and Build Numbers 
// by using the ‘*‘ as shown below:

[assembly: AssemblyVersion(“1.0.*“)]

//
// In order to sign your assembly you must specify a key to use. Refer to the 
// Microsoft .NET framework documentation for more information on assembly signing.
//
// Use the attributes below to control which key is used for signing. 
//
// Notes: 
//   (*) If no key is specified the assembly is not signed.
//   (*) KeyName refers to a key that has been installed in the Crypto Service
//       Provider (CSP) on your machine. KeyFile refers to a file which contains
//       a key.
//   (*) If the KeyFile and the KeyName values are both specified the 
//       following processing occurs:
//       (1) If the KeyName can be found in the CSP that key is used.
//       (2) If the KeyName does not exist and the KeyFile does exist the key 
//           in the KeyFile is installed into the CSP and used.
//   (*) In order to create a KeyFile you can use the sn.exe (Strong Name) utility.
//       When specifying the KeyFile the location of the KeyFile should be
//       relative to the project output directory which is
//       %Project Directory%\obj\. For example if your KeyFile is
//       located in the project directory you would specify the AssemblyKeyFile 
//       attribute as [assembly: AssemblyKeyFile(“..\\..\\mykey.snk“)]
//   (*) Delay Signing is an advanced option - see the Microsoft .NET framework
//       documentation for more information on this.
//
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile(““)]
[assembly: AssemblyKeyName(““)]

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

     文件       1078  2006-02-24 14:16  ReadWordDocument-test\App.ico

     文件       2426  2006-02-24 14:16  ReadWordDocument-test\AssemblyInfo.cs

     文件      35840  2010-09-07 08:50  ReadWordDocument-test\bin\Debug\iEAA.Dbop.dll

     文件     217088  2011-03-08 17:18  ReadWordDocument-test\bin\Debug\Interop.Microsoft.Office.Core.dll

     文件     155648  1999-03-21 10:39  ReadWordDocument-test\bin\Debug\Interop.Office.dll

     文件     655360  2011-03-08 17:18  ReadWordDocument-test\bin\Debug\Interop.Word.dll

     文件      24576  2011-03-11 19:54  ReadWordDocument-test\bin\Debug\ReadWordDocument.exe

     文件      22016  2011-03-11 19:54  ReadWordDocument-test\bin\Debug\ReadWordDocument.pdb

     文件       5632  2005-11-11 22:25  ReadWordDocument-test\bin\Debug\ReadWordDocument.vshost.exe

     文件      14909  2011-03-11 16:35  ReadWordDocument-test\Form1.cs

     文件       5814  2011-03-11 16:22  ReadWordDocument-test\Form1.resx

     文件        894  2011-03-11 19:54  ReadWordDocument-test\Import.cs

     文件       4551  2011-03-11 17:19  ReadWordDocument-test\Import.Designer.cs

     文件       6017  2011-03-11 17:19  ReadWordDocument-test\Import.resx

     文件     217088  2011-03-08 17:18  ReadWordDocument-test\obj\Debug\Interop.Microsoft.Office.Core.dll

     文件     655360  2011-03-08 17:18  ReadWordDocument-test\obj\Debug\Interop.Word.dll

     文件        828  2011-03-11 17:19  ReadWordDocument-test\obj\Debug\ReadWordDocument.csproj.GenerateResource.Cache

     文件        727  2011-03-08 17:18  ReadWordDocument-test\obj\Debug\ReadWordDocument.csproj.ResolveComReference.cache

     文件      24576  2011-03-11 19:54  ReadWordDocument-test\obj\Debug\ReadWordDocument.exe

     文件        180  2011-03-11 16:23  ReadWordDocument-test\obj\Debug\ReadWordDocument.Form1.resources

     文件        180  2011-03-11 17:19  ReadWordDocument-test\obj\Debug\ReadWordDocument.Import.resources

     文件      22016  2011-03-11 19:54  ReadWordDocument-test\obj\Debug\ReadWordDocument.pdb

    ..A..H.      5384  2006-02-24 15:21  ReadWordDocument-test\obj\Debug\ReadWordDocument.projdata

     文件       5673  2011-03-11 11:26  ReadWordDocument-test\obj\Debug\ResolveAssemblyReference.cache

     文件     155648  1999-03-21 10:39  ReadWordDocument-test\obj\Interop.Office.dll

     文件     495616  1999-03-18 04:12  ReadWordDocument-test\obj\Interop.Word.dll

     文件       1070  2011-03-11 19:54  ReadWordDocument-test\obj\ReadWordDocument.csproj.FileListAbsolute.txt

     文件       5093  2011-03-11 19:53  ReadWordDocument-test\ReadWordDocument.csproj

     文件       2083  2011-03-08 17:18  ReadWordDocument-test\ReadWordDocument.csproj.user

     文件       2644  2006-02-24 15:21  ReadWordDocument-test\ReadWordDocument.resharperoptions

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

评论

共有 条评论