我在程序中打开一个Excel模板文件,输入数据后,需要另存到一个确定的目录下。代码如下: Microsoft.Office.Interop.Excel.Application appExcel = new Microsoft.Office.Interop.Excel.Application();
appExcel = new Microsoft.Office.Interop.Excel.ApplicationClass();
appExcel.Application.Workbooks.Open(System.Windows.Forms.Application.StartupPath.ToString() + "\\SrayTemplates\\XXXX考试确认表.xlt", oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing);
//填写数据后另存
appExcel对象没有SaveAs 方法,如何将该文件另存?
谢谢各位!
appExcel = new Microsoft.Office.Interop.Excel.ApplicationClass();
appExcel.Application.Workbooks.Open(System.Windows.Forms.Application.StartupPath.ToString() + "\\SrayTemplates\\XXXX考试确认表.xlt", oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing);
//填写数据后另存
appExcel对象没有SaveAs 方法,如何将该文件另存?
谢谢各位!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货