Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / October 2005

Tip: Looking for answers? Try searching our database.

SaveAs with WebBrowser Control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Abhishek - 14 Oct 2005 14:45 GMT
Hi

I have used WebBrowser control and i want to save the entire webpage
including pictures etc. I am using ExecWB method of WebBrowser control
with OLECMDEXECOPT_DONTPROMPTUSER  flag (as in folowing statement)

ie.ExecWB(OLECMDID.OLECMDID_SAVEAS,
OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER,ref Outfile, ref _null);

, but it opens a SaveAs dialog box. Also, if I click on Save, the page
is saved without the images and other resources.

I want automatically save the webpage without using save as dialog box.
Does anybody know how to get this done.
Thanks in advance.

Regards,
Abhishek
Herfried K. Wagner [MVP] - 14 Oct 2005 19:12 GMT
"Abhishek" <mishra712@gmail.com> schrieb:
> I have used WebBrowser control and i want to save the entire webpage
> including pictures etc. I am using ExecWB method of WebBrowser control
[quoted text clipped - 4 lines]
>
> , but it opens a SaveAs dialog box.

For security reasons that's not supported since IE4:

<URL:http://groups.google.de/groups?selm=L3yAKK0RCHA.2372%40cpmsftngxa07>

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>

Robbe Morris [C# MVP] - 14 Oct 2005 19:38 GMT
You should be able to capture the innerHtml of the document
upon completion of each page load.  You can also iterate
through links and images to manage all of this yourself.

This link will point you in the right direction.

http://www.eggheadcafe.com/PrintSearchContent.asp?LINKID=967

Signature

Robbe Morris - 2004/2005 Microsoft MVP C#
http://www.masterado.net

> Hi
>
[quoted text clipped - 14 lines]
> Regards,
> Abhishek

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.