Click here to Skip to main content
15,946,012 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using following code to save web page as text file. But code doesn't seem to work correctly as per visibility(UI) of save as dialog box

webBrowser1.Document.ExecCommand("SaveAs", false, @"C:\google.txt");

I set UI to false so it should not show save as dialog box. But it still showing regularly for every call of "ExecCommand". At MSDN it is stated that when you set second parameter to false it should turn of "Save As" UI off. Can anybody please tell me why it's not working?

1 solution

This is only a guess, but maybe you don't have permission to write to the C:\ folder, or the file is read only...

And then there's this:[^]

I think you're just plain out of luck.
Share this answer

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