using Excel = Microsoft.Office.Interop.Excel;
#region 导出到excel多sheet的两种方法
private void ToExcelSheet(DataSet ds, string sheetName, string strFileName)
{
//Exsel模板
string templetFile = System.Windows.Forms.Application.StartupPath + @"/Temp/template.xls";
System.Reflection.Missing miss = System.Reflection.Missing.Value;
//创建EXCEL对象appExcel,Workbook对象,Worksheet对象,Range对象
Excel.Application appExc......
阅读全文