如何可以保存Excel为指定文件名?
如何可以保存Excel为指定文件名?
Excel.Application excel = new Excel.Application();//引用Excel对象
excel.Application.Workbooks.Add ( true );//引用Excel工作簿
excel.Visible = true;//使Excel可视
excel.Cells[ 1 , 1 ] = "First Row First Column";
excel.Cells[ 1 , 2 ] = "First Row Second Column";
excel.Cells[ 2 , 1 ] = "Second Row First Column";
excel.Cells[ 2 , 2 ] = "Second Row Second Column";
excel.Visible = true ;