使用vb.net编码从任务管理器中终止单词处理 [英] kill word process from task manager using vb.net coding
问题描述
嗨.
我有一个gridview,它已导出到我的网页中的word文档.
我的问题是..在导出gridview时..如果互联网断开了..则在任务管理器中创建了winword.exe(dump).
并尝试将gridview导出到winword ...这给出了错误..该文件已在使用中..或正在使用该进程..
我们该如何解决Internet暂时断开的问题..如何尝试解决此问题..
在此先感谢
hi.
i have a gridview which is exported to word document in my web page.
my problem is that.. while exporting the gridview..if the internet is disconnected.. then the winword.exe ( dump ) is created in task manager.
and in another attempt of exporting gridview to winword ... it gives error.. that the file is already in use.. or the process is being used like that..
how can we tackle with the temporary disconnection of internet .. how we can try catch this problem..
thanks in advance
推荐答案
使用try-catch-finally块并将应用程序实例关闭/放置在finally块中.我无法理解"Internet临时断开连接"如何影响服务器端代码的执行.
Use a try-catch-finally block and close/dispose the application instance in its finally block. I am not able to understand how "temporary disconnection of internet" is affecting the execution of your code at server side.
如果我输入错误,请纠正我,但是从网页导出是否需要输入文字从一开始?
Correct me if I am wrong but exporting from a webpage does it require word from the start?
这篇关于使用vb.net编码从任务管理器中终止单词处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!