使用C#的Excel工作表处理 [英] Excel sheet manipulation using c#

查看:73
本文介绍了使用C#的Excel工作表处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个应用程序,我必须将在Windows窗体中键入的数据插入到Excel工作表中.但是当我关闭Windows窗体时,我会自动定向到插入数据的excel工作表中.如何避免?我不希望在我关闭form.plz帮助时打开excel工作表
在adv中使用thnx ...


I have a application in which i have to insert data i type in my windows form into the excel sheet.But when I close my windows form,i get automatically directed to the excel sheet where the data gets inserted.How to avoid it?I dont want the excel sheet to open when i close my form.plz help
Thnx in adv...

推荐答案

我认为您没有关闭代码中的excel工作簿和工作表.
尝试关闭并处置在代码中创建的对象.这样可以解决您的问题.
I think you are not closing the excel workbook and worksheet in code.
Try to close and dispose the objects that are created in your code. This will resolve your problem.


这篇关于使用C#的Excel工作表处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆