capture web page to image from BHO

  • Thread starter Thread starter James
  • Start date Start date
J

James

Hi,

Can anyone give any pointers on capturing a web page to an image from a BHO?

I have tried everything I have found on the web, and none of them work. I
tried PrintWindow, SendMessage, OleDraw. The closest I have come to a
working solutoin in PrintWindow, but as soon as the web page exceeds the
dimensions on the screen, I get black boundaries. :(

Thanks
James
 
James said:
Hi,

Can anyone give any pointers on capturing a web page to an image from a
BHO?

I have tried everything I have found on the web, and none of them work. I
tried PrintWindow, SendMessage, OleDraw. The closest I have come to a
working solutoin in PrintWindow, but as soon as the web page exceeds the
dimensions on the screen, I get black boundaries. :(


Why would it be necessary for the user to install a BHO (browser helper
object) to substitute for the File -> Send To or File -> Print menus, or
using File -> Save As to save the page to a file, like using .mht for an
archive HTML file where all objects are stored within one file (instead of
many and under subdirectories, too), or right-clicking in the appropriate
frame and selecting to Print, especially since they could install
file-target printer drivers, like CutePDF, PrimoPDF, and others that let
users "print" to create a PDF output file?

What does saving the web page by using a BHO give them that they don't have
now? Why does it have to be a BHO rather than a COM extension, like
PopUpCop which adds functionality (for popup blocking, flash blocking,
cookie management, etc.) but does NOT operate as a BHO? (You might want to
contact the PopUpCop author, or visit programming groups since this is a
*client* group, since I am not a programmer.)

Guess I missed it, but I don't see how any BHO is offering more
functionality with a web page "print" function that already exists within
the browser or can be directed to a file using existing 3rd party software.
 
Vanguard (NPI) said:
Why would it be necessary for the user to install a BHO (browser helper
object) to substitute for the File -> Send To or File -> Print menus, or
using File -> Save As to save the page to a file, like using .mht for an
archive HTML file where all objects are stored within one file (instead of
many and under subdirectories, too), or right-clicking in the appropriate
frame and selecting to Print, especially since they could install
file-target printer drivers, like CutePDF, PrimoPDF, and others that let
users "print" to create a PDF output file?

What does saving the web page by using a BHO give them that they don't
have now? Why does it have to be a BHO rather than a COM extension, like
PopUpCop which adds functionality (for popup blocking, flash blocking,
cookie management, etc.) but does NOT operate as a BHO? (You might want
to contact the PopUpCop author, or visit programming groups since this is
a *client* group, since I am not a programmer.)

Guess I missed it, but I don't see how any BHO is offering more
functionality with a web page "print" function that already exists within
the browser or can be directed to a file using existing 3rd party
software.

Hi Vanguard,

Thanks for you response, and apologies if I have posted this to the wrong
thread (I didnt know where this qu belongs).

The reason I am trying to capture from a BHO, is that I want to be able to
capture the image invisbly to the user. For example, if a user browses to a
page, I would like to grab an image of that page into a directory on the
harddrive without them having to click any buttons. If you can think of a
better way to do this I would be happy to hear any suggestions (I am just
hear for advice :) ).

Thanks again,
James
 
James said:
Hi Vanguard,

Thanks for you response, and apologies if I have posted this to the wrong
thread (I didnt know where this qu belongs).

The reason I am trying to capture from a BHO, is that I want to be able to
capture the image invisbly to the user. For example, if a user browses to
a page, I would like to grab an image of that page into a directory on the
harddrive without them having to click any buttons. If you can think of a
better way to do this I would be happy to hear any suggestions (I am just
hear for advice :) ).



If the user hasn't disabled the Temporary Internet File (TIF) cache in IE
(or whatever cache their particular browser uses), or set it to cache zero
files/bytes, copies of whatever they downloaded from a page should be in the
cache, and that happens invisibly to the user, too. If, however, you are
trying to create ONE file that contains the web page contents, remember that
you will end up making the user's browsing experience very much slower as
you duplicate the writing of that content into a file that is already being
downloaded into the TIF.

If you are instead trying to make browsing faster on a *return* to a web
site, there are caching proxies you can use for that (i.e., a hit on the
same URL as hit before will end up downloading the pages that are still in
the proxy's cache). If instead you are trying to pre-download other pages
than the one being viewed by using the links on that page, there are
webspiders or webcrawlers for that (so the user can crawl a site and then
later review it while offline). I would suspect some web accelerators work
similarly.
 
Back
Top