• 大小: 0.36M
    文件类型: .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.Data.OleDb;

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

        private void tsbtn_Open_Click(object sender EventArgs e)
        {
            OpenFileDialog openFile = new OpenFileDialog();//实例化打开对话框对象
            openFile.Filter = “Excel文件|*.xls“;//设置打开文件筛选器
            openFile.title = “打开Excel文件“;//设置打开对话框标题
            if (openFile.ShowDialog() == DialogResult.OK)//判断是否选择了文件
            {
                tstxt_Excel.Text=openFile.FileName;
                WBrowser_Excel.Navigate(openFile.FileName);//在窗体中显示Excel文件内容
                List P_list_SheetNames = GetSheetName(tstxt_Excel.Text);//获取选中Excel中的所有工作表
                tscbox_Sheet.Items.Clea

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         920  2010-06-18 16:03  ExcelChart\ExcelChart.sln
     文件       27648  2010-11-03 16:55  ExcelChart\ExcelChart.suo
     文件        4160  2010-11-03 16:53  ExcelChart\ExcelChart\ExcelChart.csproj
     文件        7441  2010-06-18 17:03  ExcelChart\ExcelChart\Frm_Main.cs
     文件        8271  2010-06-18 17:00  ExcelChart\ExcelChart\Frm_Main.designer.cs
     文件        6012  2010-06-18 17:00  ExcelChart\ExcelChart\Frm_Main.resx
     文件         494  2010-06-18 16:11  ExcelChart\ExcelChart\Program.cs
     文件       15872  2010-11-03 16:53  ExcelChart\ExcelChart\bin\Debug\ExcelChart.exe
     文件       32256  2010-11-03 16:53  ExcelChart\ExcelChart\bin\Debug\ExcelChart.pdb
     文件       14328  2010-06-18 16:03  ExcelChart\ExcelChart\bin\Debug\ExcelChart.vshost.exe
     文件         490  2009-06-11 05:14  ExcelChart\ExcelChart\bin\Debug\ExcelChart.vshost.exe.manifest
     文件     1100392  2007-10-10 09:48  ExcelChart\ExcelChart\bin\Debug\Microsoft.Office.Interop.Excel.dll
     文件        2331  2010-11-03 16:53  ExcelChart\ExcelChart\obj\Debug\ExcelChart.csproj.FileListAbsolute.txt
     文件         992  2010-11-03 16:53  ExcelChart\ExcelChart\obj\Debug\ExcelChart.csproj.GenerateResource.Cache
     文件       15872  2010-11-03 16:53  ExcelChart\ExcelChart\obj\Debug\ExcelChart.exe
     文件         180  2010-11-03 16:53  ExcelChart\ExcelChart\obj\Debug\ExcelChart.Frm_Main.resources
     文件       32256  2010-11-03 16:53  ExcelChart\ExcelChart\obj\Debug\ExcelChart.pdb
     文件        1440  2010-11-03 16:53  ExcelChart\ExcelChart\obj\Debug\ExcelChart.Properties.Resources.resources
     文件        8746  2010-06-18 17:03  ExcelChart\ExcelChart\obj\Debug\ResolveAssemblyReference.cache
     文件        5120  2010-06-18 16:14  ExcelChart\ExcelChart\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
     文件        1352  2010-06-18 16:03  ExcelChart\ExcelChart\Properties\AssemblyInfo.cs
     文件        3354  2010-06-18 16:14  ExcelChart\ExcelChart\Properties\Resources.Designer.cs
     文件        6449  2010-06-18 16:14  ExcelChart\ExcelChart\Properties\Resources.resx
     文件        1095  2010-06-18 16:03  ExcelChart\ExcelChart\Properties\Settings.Designer.cs
     文件         249  2010-06-18 16:03  ExcelChart\ExcelChart\Properties\Settings.settings
     文件        2862  2010-06-18 16:14  ExcelChart\ExcelChart\Resources\open.ico
     文件        7168  2010-11-06 09:15  ExcelChart\ExcelChart\Resources\Thumbs.db
     文件        2862  2010-06-18 16:14  ExcelChart\ExcelChart\Resources\图标 (157).ico

评论

共有 条评论