获取内容
private void ReadExcel()
{
string strReadFilePath = string.Empty;
Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog();
dlg.Filter = "All File|*.*|Excel documents|*.xlsx|Excel(97 - 2003)documents|*.xls";
Nullable<bool> result = dlg.ShowDialog();
if (result == true)
{
strReadFilePath = dlg.FileName;
}
else
return;
System.IO.FileStream fs = new System.IO.FileStream(strReadFilePath, System.IO.FileMode.Op