我给你个源码 using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Data; using System.Windows.Forms; using Microsoft.Office.Interop.Excel;
namespace Property_management { class Export { private static System.Windows.Forms.DataGridView gridView; private static System.Windows.Forms.ProgressBar toolStripProgressBar1; private static Timer time; private static DataSet objSet = new DataSet(); private static SaveFileDialog saveFileDialog = new SaveFileDialog(); private static SaveFileDialog saveFileDialog2 = new SaveFileDialog();
public static System.Windows.Forms.DataGridView _gridView { get set } public static System.Windows.Forms.ProgressBar _toolStripProgressBar1 { get set } public static Timer _time { get set } public static DataSet _objSet { get set }