• 大小: 8.65M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: s  

资源简介

输入xls文件的完整路径,然后 点击 button按钮,即可将xls文件转换为 xlsx文件

资源截图

代码片段和文件信息

using Spire.Xls;
using Spire.Xls.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.OleDb;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using XlstoXlsx;

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

        private void button1_Click(object sender EventArgs e)
        {

            Workbook workbook = new Workbook();
            workbook.LoadFromFile(textBox1.Text);
            workbook.SaveToFile(“90.xlsx“ ExcelVersion.Version97to2003);


            //     XlstoXlsx.Class1 get = new XlstoXlsx.Class1();

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

    ..A..H.     44544  2018-10-12 10:01  WindowsFormsApplication1\.vs\WindowsFormsApplication1\v14\.suo

     文件        189  2018-10-12 09:57  WindowsFormsApplication1\WindowsFormsApplication1\App.config

     文件      52736  2019-03-05 13:52  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\90.xlsx

     文件    8007680  2008-04-22 00:07  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\Microsoft.mshtml.dll

     文件      55808  2019-03-05 13:47  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\Spire.License.dll

     文件   15364096  2019-03-05 13:47  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\Spire.Pdf.dll

     文件    9808896  2019-03-05 13:47  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\Spire.XLS.dll

     文件       9216  2019-03-05 13:50  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe

     文件        189  2018-10-12 09:57  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe.config

     文件      19968  2019-03-05 13:50  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb

     文件      22696  2019-03-05 13:52  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe

     文件        189  2018-10-12 09:57  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.config

     文件        490  2017-09-29 21:43  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.manifest

     文件       9216  2018-10-12 09:56  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\XlstoXlsx.dll

     文件        886  2019-03-05 13:50  WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs

     文件       2533  2019-03-05 13:18  WindowsFormsApplication1\WindowsFormsApplication1\Form1.Designer.cs

     文件       5817  2019-03-05 13:18  WindowsFormsApplication1\WindowsFormsApplication1\Form1.resx

     文件        868  2018-10-12 09:57  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       7467  2019-03-05 13:47  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件          0  2018-10-12 09:57  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2018-10-12 09:57  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

     文件          0  2018-10-12 09:57  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

     文件       3247  2019-03-05 13:52  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.csproj.FileListAbsolute.txt

     文件       1012  2019-03-05 13:18  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.csproj.GenerateResource.Cache

     文件      26173  2019-03-05 13:50  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.csprojResolveAssemblyReference.cache

     文件       9216  2019-03-05 13:50  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.exe

     文件        180  2019-03-05 13:50  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.Form1.resources

     文件      19968  2019-03-05 13:50  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.pdb

     文件        180  2019-03-05 13:50  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.Properties.Resources.resources

     文件        536  2018-10-12 09:57  WindowsFormsApplication1\WindowsFormsApplication1\Program.cs

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

评论

共有 条评论