C#路径选择及Excel读写操作
最近由于工作需要接触了一下C#对于Excel的操作,来记录一下代码,如有更好的方式希望能够交流一下!
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Reflection;
using NPOI.SS.UserModel;
using NPOI.HSSF.UserModel;
using NPOI.XSSF.UserModel;
namespace AutoData
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
public string path = string.Empty;
public string readstr1 = string.Empty;
public string readstr2 = string.Empty;
public string readstr3 = string.E