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 / Languages / C# / February 2008

Tip: Looking for answers? Try searching our database.

Download webpage with images

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CJ - 24 Feb 2008 19:53 GMT
Can someone tell me how to download a webpage complete with images and
insert
it into a richtextbox?

Thanks
Marc Gravell - 24 Feb 2008 19:59 GMT
How about you use a WebBrowser control instead? That should be a far
simpler task; just Navigate(yourUrl) and you're done...?

Marc
CJ - 24 Feb 2008 20:50 GMT
Well I want to save it to a database too, I don't just want to view it.

> How about you use a WebBrowser control instead? That should be a far
> simpler task; just Navigate(yourUrl) and you're done...?
>
> Marc
Marc Gravell - 24 Feb 2008 21:10 GMT
> Well I want to save it to a database too, I don't just want to view it.

There are various tools for this type of thing - a few leap to mind
that would allow you to grab a page as pdf (ABCpdf, HTMLDOC, etc). You
could perhaps try and automate the "mht" download from IE
(=shdocvw=WebBrowser), but I suspect it might be tricky.

I'm not /personally/ aware of any tools that to direct HTML => RTF
translation, but google may have some hits...

Marc
CJ - 24 Feb 2008 22:23 GMT
It doesn't really have to be html to rtf, I want to be able to type in
a url and have my program download that specific page plus the
images and save it to a db.

>> Well I want to save it to a database too, I don't just want to view it.
>
[quoted text clipped - 7 lines]
>
> Marc
Marc Gravell - 24 Feb 2008 23:05 GMT
> I want to be able to type in a url and have my program download
> that specific page plus the images and save it to a db.

Then either of the 2 cited tools should suffice; if not, post back?

Marc
CJ - 25 Feb 2008 03:54 GMT
I was looking at this program that does something like I want, and I noticed
that they are using a webbrowser component to download and view the page.
But what are they doing to store the contents of the page to a db, that is
the
question.

>> I want to be able to type in a url and have my program download
>> that specific page plus the images and save it to a db.
>
> Then either of the 2 cited tools should suffice; if not, post back?
>
> Marc
Marc Gravell - 25 Feb 2008 06:49 GMT
> I was looking at this program that does something like I want...

Sorry, which program? Was there an attachment (if so it got stripped
by my reader)?

Marc
CJ - 25 Feb 2008 12:41 GMT
It's called Source code library:
http://www.highdots.com/source-code-library/
It looks like they are using a webbrowser to download the url, then they are
storing the information from the webbrowser into a database.  Then they
retrieve the info from the db as they need to display it.

CJ

>> I was looking at this program that does something like I want...
>
> Sorry, which program? Was there an attachment (if so it got stripped
> by my reader)?
>
> Marc
Marc Gravell - 25 Feb 2008 13:04 GMT
Maybe I'm missing it, but I can't see anything in the overview for
that product that claims to anything remotely like what you have
described?

Care to ellaborate?

Marc
admin@betterwindowssoftware.com - 26 Feb 2008 04:22 GMT
> Maybe I'm missing it, but I can't see anything in the overview for
> that product that claims to anything remotely like what you have
[quoted text clipped - 3 lines]
>
> Marc

Sorry if this doesn't help, but I searched for something completely
unrelated - and read this message because it interested me.

I think that you want a basic image scraping utility per URL.
Something more like these two titles:

WebGrab! by JSAC
 http://betterwindowssoftware.com/products-78076.html

Adsen Image Grab (version: 1.2) by Adsen Software
 http://betterwindowssoftware.com/products-32348.html

regards,
Brian
Roger Frost - 24 Feb 2008 20:05 GMT
There is an actual WebBrowser control for viewing web content in your
application.  I'm not sure in which version it was introduced, but Visual C#
2008 Express has one in the toolbox.

Hope this helps!

Signature

Roger Frost
"Logic Is Syntax Independent"

> Can someone tell me how to download a webpage complete with images and
> insert
> it into a richtextbox?
>
> Thanks
Marc Gravell - 24 Feb 2008 20:19 GMT
> I'm not sure in which version it was introduced
.NET Framework 2.0
Visual Studio 2005 (all variants)

Before then you could presumably use interop to the ActiveX facet of
shdocvw.

Marc

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.