Click to See Complete Forum and Search --> : Supressing Dialogue Box In WebBrowser Control


nilu_2005
March 30th, 2010, 01:08 AM
Hello,

I am trying to suppress "SaveAs" dialogue box using following C# code :

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

But as you can see , this code doesn't suppress "SaveAs" dialogue box as per visibility set to "False" . I have searched MSDN site about this code. But this code will suppress dialogue box as per MSDN docs said. Can you please tell me how can I suppress this annoying dialogue box & save as web page directly to hard disk.

nilu_2005
August 4th, 2010, 12:57 AM
Has anybody know why "false" parameter not working here ? or is it wrong code provided by MSDN. If yes then what is alternative method to save webpage as text file without showing dialog box to user , so he can continue his work without interruption.