使用webbrowser控件c#打开excel文件时,如何禁用此对话框? [英] How can I disable this dialog box when open excel file using webbrowser control c#
问题描述
大家好!
目前我正在使用Web浏览器控件进行功能加载和编辑Excel文件的项目。 (窗口应用程序)
我使用的方法:
webbrowser1.Navigate( file.xls, false );
在webbrowser中加载excel文件。
参考: 如何使用WebBrowser在Windows窗体应用程序中集成Excel [ ^ ]
我遇到了问题:
一旦文件被加载到第一个excel webbrowser并编辑了
然后我关闭它,会出现一个对话框,内容为:
文件内容已更改,您可能要保存吗?
有3个选项:是/否/取消。
如何禁用此对话框?可能吗?
任何评论或想法对我都非常有用!
非常感谢你?
< blockquote>另请参阅使用MS Excel(xls / xlsx)使用MDAC和Oledb [ ^ ]。
Hi everybody!
Currently I am doing projects with features load and edit excel files using Webbrowser control. (Window Application)
I use the method:
webbrowser1.Navigate ("file.xls", false);
to load excel file in webbrowser.
Refer: How to Integrate Excel in a Windows Form Application using the WebBrowser[^]
I am having problems:
Once the file is loaded into the first excel webbrowser and edited
then I close it, a dialog box appears with content:
The contents of the file have been changed, you may want to save it?
With 3 options: Yes / No / Cancel.
How can I disable this dialog box? Is possible?
Any comments or ideas will be very useful for me!
Thank you very much?
See also Working with MS Excel(xls / xlsx) Using MDAC and Oledb[^].
这篇关于使用webbrowser控件c#打开excel文件时,如何禁用此对话框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!