http://www.codeproject.com/KB/vb/WebCapture.aspx
但是也有更簡潔的程式, Console就可以執行, IECapt
-----------------------------------------------------------------------------
Usage: IECapt --url=http://www.example.org/ --out=localfile.png
-----------------------------------------------------------------------------
--help Print this help page and exit
--url=
--out=
--min-width=
--max-wait=
--delay=
--silent Whether to surpress some dialogs
-----------------------------------------------------------------------------
http://iecapt.sf.net - (c) 2003-2008 Bjoern Hoehrmann -
只需要提供網址以及儲存檔名跟附加選項, 就可以很容易被其他程式外部呼叫. 雖然這是一隻獨立的Win32 Exe, 但是現在各語言已經有提供外部呼叫程式並等待其結束後再返回原有程式繼續執行. Java使用時亦很方便.
Process proc = Runtime.getRuntime().exec("exec command string");
int exitValue = proc.waitFor();
http://iecapt.sourceforge.net/