• 大小: 0.34M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-24
  • 语言: C#
  • 标签:

资源简介


资源截图

代码片段和文件信息

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 System.Reflection;
using Microsoft.Office.Interop.Excel;

namespace CreateMultiSheet
{
    public partial class Frm_Main : Form
    {
        public Frm_Main()
        {
            InitializeComponent();
        }

        string M_str_Name = ““;
        private void 打开Excel文件ToolStripMenuItem_Click(object sender EventArgs e)
        {
            OpenFileDialog.Filter=“Excel文件|*.xls“;//设置打开文件筛选器
            OpenFileDialog.title = “打开Excel文件“;//设置打开对话框标题
            OpenFileDialog.Multiselect = false;//设置打开对话框中不能多选
            if (OpenFileDialog.ShowDialog() == DialogResult.OK)//判断是否选择了文件
            {
                M_str_Name = OpenFileDialog.FileName;//记录选择的Excel文件
                WBrowser_Excel.Navigate(M_str_Name);//在窗体中显示Excel文件内容
            }
        }

  

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         938  2010-06-07 13:29  CreateMultiSheet\CreateMultiSheet.sln
     文件       20480  2010-11-03 16:07  CreateMultiSheet\CreateMultiSheet.suo
     文件        3975  2010-11-03 16:06  CreateMultiSheet\CreateMultiSheet\CreateMultiSheet.csproj
     文件        2738  2010-06-25 10:49  CreateMultiSheet\CreateMultiSheet\Frm_Main.cs
     文件        5230  2010-06-25 10:49  CreateMultiSheet\CreateMultiSheet\Frm_Main.designer.cs
     文件        6216  2010-06-25 10:49  CreateMultiSheet\CreateMultiSheet\Frm_Main.resx
     文件         500  2010-06-07 13:34  CreateMultiSheet\CreateMultiSheet\Program.cs
     文件       10752  2010-11-03 16:06  CreateMultiSheet\CreateMultiSheet\bin\Debug\CreateMultiSheet.exe
     文件       30208  2010-11-03 16:06  CreateMultiSheet\CreateMultiSheet\bin\Debug\CreateMultiSheet.pdb
     文件       14328  2010-06-07 13:30  CreateMultiSheet\CreateMultiSheet\bin\Debug\CreateMultiSheet.vshost.exe
     文件         490  2009-06-11 05:14  CreateMultiSheet\CreateMultiSheet\bin\Debug\CreateMultiSheet.vshost.exe.manifest
     文件     1100392  2007-10-10 09:48  CreateMultiSheet\CreateMultiSheet\bin\Debug\Microsoft.Office.Interop.Excel.dll
     文件        2619  2010-11-03 16:06  CreateMultiSheet\CreateMultiSheet\obj\Debug\CreateMultiSheet.csproj.FileListAbsolute.txt
     文件         850  2010-11-03 16:06  CreateMultiSheet\CreateMultiSheet\obj\Debug\CreateMultiSheet.csproj.GenerateResource.Cache
     文件       10752  2010-11-03 16:06  CreateMultiSheet\CreateMultiSheet\obj\Debug\CreateMultiSheet.exe
     文件         180  2010-11-03 16:06  CreateMultiSheet\CreateMultiSheet\obj\Debug\CreateMultiSheet.Frm_Main.resources
     文件       30208  2010-11-03 16:06  CreateMultiSheet\CreateMultiSheet\obj\Debug\CreateMultiSheet.pdb
     文件         180  2010-11-03 16:06  CreateMultiSheet\CreateMultiSheet\obj\Debug\CreateMultiSheet.Properties.Resources.resources
     文件        8724  2010-06-07 13:43  CreateMultiSheet\CreateMultiSheet\obj\Debug\ResolveAssemblyReference.cache
     文件        1364  2010-06-07 13:29  CreateMultiSheet\CreateMultiSheet\Properties\AssemblyInfo.cs
     文件        2882  2010-06-07 13:29  CreateMultiSheet\CreateMultiSheet\Properties\Resources.Designer.cs
     文件        5612  2010-06-07 13:29  CreateMultiSheet\CreateMultiSheet\Properties\Resources.resx
     文件        1101  2010-06-07 13:29  CreateMultiSheet\CreateMultiSheet\Properties\Settings.Designer.cs
     文件         249  2010-06-07 13:29  CreateMultiSheet\CreateMultiSheet\Properties\Settings.settings

评论

共有 条评论