打开excel后另存在另一个文件夹中
打开excel后另存在另一个文件夹中
Microsoft.Office.Interop.Excel.Application app = new Microsoft.Office.Interop.Excel.Application();
Microsoft.Office.Interop.Excel.Workbook openWorkbook = app.Application.Workbooks.Add("c:\\123.xls");
app.Visible = true ;
Worksheet ws = (Microsoft.Office.Interop.Excel.Worksheet)openWorkbook.Worksheets[1];
ws.Columns.ColumnWidth = 24;
下面如何另存成“d:\\123\\321.xls”?
谢谢!
------解决方案--------------------
C# code
openWorkbook.SaveAs("d:\\123\\321.xls");