Microsoft Office Interop Excel打开文件而不保存 [英] microsoft office interop excel open file without saving
本文介绍了Microsoft Office Interop Excel打开文件而不保存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用以下代码创建excel工作表:
I use this code to create excel worksheet:
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实例:
Sure, just show your Excel instance:
excelApp.Visible = true;
这篇关于Microsoft Office Interop Excel打开文件而不保存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文