• 大小: 0.39M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: winform  Excel  C#  c  ORM  

资源简介

C#_WinForm_导出Excel

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Reflection;
using System.Text;
using System.Text.Regularexpressions;
using System.Threading;
using System.Windows.Forms;
using Excel = Microsoft.Office.Interop.Excel;

namespace WinFormExportExcel
{
    class ClsExcel
    {

        private Microsoft.Office.Interop.Excel.Application xApp;
        private Microsoft.Office.Interop.Excel.Workbook xWorkBook;
        public Microsoft.Office.Interop.Excel.Worksheet xSheet;
        private object m_objMiss = System.Reflection.Missing.Value;

        public Microsoft.Office.Interop.Excel.Application X_App
        {
            get
            {
                return xApp;
            }
            set
            {
       

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-02-20 08:59  WinFormExportExcel\
     目录           0  2017-02-20 09:47  WinFormExportExcel\WinFormExportExcel\
     文件         896  2017-02-20 08:59  WinFormExportExcel\WinFormExportExcel.sln
     文件       30720  2017-02-20 09:57  WinFormExportExcel\WinFormExportExcel.suo
     目录           0  2017-02-20 08:59  WinFormExportExcel\WinFormExportExcel\bin\
     目录           0  2017-02-20 09:10  WinFormExportExcel\WinFormExportExcel\bin\Debug\
     文件       40448  2017-02-20 09:57  WinFormExportExcel\WinFormExportExcel\bin\Debug\WinFormExportExcel.exe
     文件       54784  2017-02-20 09:57  WinFormExportExcel\WinFormExportExcel\bin\Debug\WinFormExportExcel.pdb
     文件       11600  2017-02-20 09:57  WinFormExportExcel\WinFormExportExcel\bin\Debug\WinFormExportExcel.vshost.exe
     文件         490  2014-01-13 21:31  WinFormExportExcel\WinFormExportExcel\bin\Debug\WinFormExportExcel.vshost.exe.manifest
     文件       39087  2017-02-20 09:46  WinFormExportExcel\WinFormExportExcel\ClsExcel.cs
     文件        2968  2017-02-20 09:57  WinFormExportExcel\WinFormExportExcel\Form1.cs
     文件        7382  2017-02-20 09:48  WinFormExportExcel\WinFormExportExcel\Form1.Designer.cs
     文件        7605  2017-02-20 09:48  WinFormExportExcel\WinFormExportExcel\Form1.resx
     文件     1100392  2017-02-09 13:49  WinFormExportExcel\WinFormExportExcel\Microsoft.Office.Interop.Excel.dll
     目录           0  2017-02-20 08:59  WinFormExportExcel\WinFormExportExcel\obj\
     目录           0  2017-02-20 08:59  WinFormExportExcel\WinFormExportExcel\obj\x86\
     目录           0  2017-02-20 09:57  WinFormExportExcel\WinFormExportExcel\obj\x86\Debug\
     文件        5420  2017-02-20 09:52  WinFormExportExcel\WinFormExportExcel\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6448  2017-02-20 09:57  WinFormExportExcel\WinFormExportExcel\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     目录           0  2017-02-20 08:59  WinFormExportExcel\WinFormExportExcel\obj\x86\Debug\TempPE\
     文件         834  2017-02-20 09:57  WinFormExportExcel\WinFormExportExcel\obj\x86\Debug\WinFormExportExcel.csproj.FileListAbsolute.txt
     文件         975  2017-02-20 09:48  WinFormExportExcel\WinFormExportExcel\obj\x86\Debug\WinFormExportExcel.csproj.GenerateResource.Cache
     文件        9896  2017-02-20 09:56  WinFormExportExcel\WinFormExportExcel\obj\x86\Debug\WinFormExportExcel.csprojResolveAssemblyReference.cache
     文件       40448  2017-02-20 09:57  WinFormExportExcel\WinFormExportExcel\obj\x86\Debug\WinFormExportExcel.exe
     文件         180  2017-02-20 09:48  WinFormExportExcel\WinFormExportExcel\obj\x86\Debug\WinFormExportExcel.Form1.resources
     文件       54784  2017-02-20 09:57  WinFormExportExcel\WinFormExportExcel\obj\x86\Debug\WinFormExportExcel.pdb
     文件         180  2017-02-20 09:19  WinFormExportExcel\WinFormExportExcel\obj\x86\Debug\WinFormExportExcel.Properties.Resources.resources
     文件         499  2017-02-20 08:59  WinFormExportExcel\WinFormExportExcel\Program.cs
     目录           0  2017-02-20 08:59  WinFormExportExcel\WinFormExportExcel\Properties\
     文件        1386  2017-02-20 08:59  WinFormExportExcel\WinFormExportExcel\Properties\AssemblyInfo.cs
............此处省略5个文件信息

评论

共有 条评论