using NPOI.HSSF.UserModel;
using NPOI.SS.UserModel;
using NPOI.XSSF.UserModel;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.OleDb;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace excel2
{
public partial class Form1 : Form
{
decimal len = 0;
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
OpenFileDialog ofd = new OpenFileDialog();
if (DialogResult.OK == ofd.ShowDialog())
{
string fileName = ofd.FileName;
//textBoxFile.Text = fileName;
labelPath.Text = fileName;
}
}
private void button2_Click(object sender, EventArgs e)
{
textBox2.Text=getDataTable(labelPath.<
导入excel自动生成sql插入语句的winform工具
最新推荐文章于 2024-06-28 08:58:26 发布