Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi get only HTML - no images (https://www.delphipraxis.net/84527-get-only-html-no-images.html)

mr_fahrrad 18. Jan 2007 00:04


get only HTML - no images
 
how i make to DONT load images in webbrowser?

flossinger 20. Jan 2007 10:03

Re: get only HTML - no images
 
Filter the HTML of the loading page, and replace the img tags. Either you simply delete them or you replace the pointed brackets with the sequences of characters "ampersand l t semicolon" and "ampersand g t semicolon" respectively - witout the quotes and without the spaces.

der flossinger

marabu 20. Jan 2007 16:35

Re: get only HTML - no images
 
Hi,

to keep a webbrowser instance from downloading images you will have to implement a host control with an IDispatch interface. The method Invoke() must handle the event id DISPID_AMBIENT_DLCONTROL. This event id is sent from the WB control to the host to request the download options, once at startup and always when informed of changes.
read more

You sure could cut corners by downloading the EmbeddedWebBrowser component, which has all this and more accessible in your object inspector.

Have fun.


Alle Zeitangaben in WEZ +1. Es ist jetzt 05:40 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz