using System.Globalization; using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Reflection; // For Missing.Value and BindingFlags using System.Runtime.InteropServices; using Excel; using System; using System.IO; using System.Collections; using System.Threading; using Office = Microsoft.Office.Core; using System.Diagnostics; 先添加引用,我用的是IDE环境中用MOUSE点的,并不是在代码中手敲,没有问题。
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Reflection; // For Missing.Value and BindingFlags
using System.Runtime.InteropServices;
using Excel;
using System;
using System.IO;
using System.Collections;
using System.Threading;
using Office = Microsoft.Office.Core;
using System.Diagnostics;
先添加引用,我用的是IDE环境中用MOUSE点的,并不是在代码中手敲,没有问题。