Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everybody!

Currently I am doing projects with features load and edit excel files using Webbrowser control. (Window Application)

I use the method:
C#
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?
Posted
Updated 20-Oct-15 22:26pm
v2
Comments
F-ES Sitecore 21-Oct-15 4:35am    
Not sure about your actual problem but I'm sure there are better ways to host Excel than using the webbrowser control, there will be an OLE type container you can use that will probably give you greater control over the embedded app too.

Also, just in case this was your plan, that app will only work on machines that have Excel already installed.
StackThanh 21-Oct-15 5:04am    
Thank you for your reply!
But my problem is to disable the dialog box of webbrowser when open excel in it?
If you have ideas or any references I am very grateful!

1 solution

 
Share this answer
 
Comments
StackThanh 21-Oct-15 5:08am    
Thank you for reply!
Your share helpful.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900