[英]microsoft office interop excel open file without saving
I use this code to create excel worksheet: 我使用以下代码创建excel工作表:
Excel.Application excelApp = new Excel.Application();
Excel.Workbook excelWorkBook = excelApp.Workbooks.Add();
Excel.Worksheet excelWorkSheet = excelWorkBook.Sheets.Add();
excelWorkSheet.Name = fileName;
... fill worksheet
Is there a way to open this worksheet (show it on screen) without saving it? 有没有办法打开此工作表(在屏幕上显示)而不保存它?
当然,只要显示您的Excel实例:
excelApp.Visible = true;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.