高手帮忙啊
procedure TForm1.WebBrowser1DocumentComplete(ASender: TObject;const pDisp: IDispatch; var URL: OleVariant);
var
browser: IHTMLDocument2;
vHTMLElementCollection: IHTMLElementCollection;
vHTMLElement: IHTMLElement;
I: Integer;
begin
browser := WebBrowser1.Document as IHTMLDocument2;
vHTMLElementCollection := browser.all;
for I := 0 to vHTMLElementCollection.length - 1 do
begin
vHTMLElement := vHTMLElementCollection.item(I, I) as IHTMLElement;
if vHTMLElement.tagName='IMG' then begin
if vHTMLElement.getAttribute('src',0)='Img1' then begin
//怎样保存此IMG到TImage中
Break;
end;
end;
end;
end;
procedure TForm1.WebBrowser1DocumentComplete(ASender: TObject;const pDisp: IDispatch; var URL: OleVariant);
var
browser: IHTMLDocument2;
vHTMLElementCollection: IHTMLElementCollection;
vHTMLElement: IHTMLElement;
I: Integer;
begin
browser := WebBrowser1.Document as IHTMLDocument2;
vHTMLElementCollection := browser.all;
for I := 0 to vHTMLElementCollection.length - 1 do
begin
vHTMLElement := vHTMLElementCollection.item(I, I) as IHTMLElement;
if vHTMLElement.tagName='IMG' then begin
if vHTMLElement.getAttribute('src',0)='Img1' then begin
//怎样保存此IMG到TImage中
Break;
end;
end;
end;
end;
解决方案 »
- 请问我myform:=Tform.create(self)之后;如何让窗模态显示?
- 急!! 100分!!Value assigned to 'Date2' never used; Value assigned to 'Date1' never used;
- dbgrid 点击事件
- abstract error
- 谁发个topgrid控件给我 能在7下用的 谢谢
- 关于两个字串交叉的问题!
- 谁能帮我把下面两个程序的代码改成C++ Builder代码???100分送上!!!
- 两个数据集之间的同步问题
- 在Delphi中的TreeView有没有象VB中TreeView的NodeClick事件
- 求救: 需要ROSE DELPHI LINK
- 新作:信封通信地址批量套打系统 可出售源码
- 为Delphi的代码完成功能伸冤
CommitUrlCacheEntry Caches data in the specified file in the cache storage and associates it with the given URL.
CreateUrlCacheEntry Allocates the requested cache storage and creates a local file name for saving the cache entry corresponding to the source name.
CreateUrlCacheGroup Generates a cache group identification.
DeleteUrlCacheEntry Removes the file associated with the source name from the cache, if the file exists.
DeleteUrlCacheGroup Releases a GROUPID and any associated state in the cache index file.
FindCloseUrlCache Closes the specified enumeration handle.
FindFirstUrlCacheEntry Begins the enumeration of the cache.
FindFirstUrlCacheEntryEx Begins a filtered enumeration of the cache.
FindNextUrlCacheEntry Retrieves the next entry in the cache.
FindNextUrlCacheEntryEx Retrieves the next entry in a filtered cache enumeration.
GetUrlCacheEntryInfo Retrieves information about a cache entry.
GetUrlCacheEntryInfoEx Searches for the URL after translating any cached redirections that would be applied in offline mode by HttpSendRequest.
ReadUrlCacheEntryStream Reads the cached data from a stream that has been opened using RetrieveUrlCacheEntryStream.
RetrieveUrlCacheEntryFile Retrieves a cache entry from the cache in the form of a file.
RetrieveUrlCacheEntryStream Provides the most efficient and implementation-independent way of accessing the cache data.
SetUrlCacheEntryGroup Adds or removes entries from a cache group.
SetUrlCacheEntryInfo Sets the specified members of the INTERNET_CACHE_ENTRY_INFO structure.
UnlockUrlCacheEntryFile Unlocks the cache entry that was locked when the file was retrieved for use from the cache by RetrieveUrlCacheEntryFile.
UnlockUrlCacheEntryStream Closes the stream that has been retrieved using RetrieveUrlCacheEntryStream.