【问题标题】:microsoft office interop excel open file without savingmicrosoft office interop excel 打开文件而不保存
【发布时间】:2015-07-09 15:46:40
【问题描述】:

我使用此代码创建 excel 工作表:

 Excel.Application excelApp = new Excel.Application();
 Excel.Workbook excelWorkBook = excelApp.Workbooks.Add();
 Excel.Worksheet excelWorkSheet = excelWorkBook.Sheets.Add();
 excelWorkSheet.Name = fileName;

 ... fill worksheet

有没有办法打开这个工作表(在屏幕上显示) 不保存?

【问题讨论】:

    标签: c# excel


    【解决方案1】:

    当然,只需显示您的 Excel 实例:

    excelApp.Visible = true;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-19
      • 2021-01-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多