IECapt is a small command-line utility to capture Internet Explorer's rendering of a web page into a BMP, JPEG or PNG image file. The C++ version also has experimental support for Enhanced Metafile vector graphic output. IECapt is available in a C++ and a C# version.

See CutyCapt for a Qt and WebKit (Safari) based cross-platform alternative to IECapt.


Here are some samples of IECapt generated renderings:


"Works for me" :-) The current version is not very verbose, it does not catch or report errors, it has some general limitations and there are some known bugs to be addressed in future versions.


IECapt depends on GDI+. GDI+ is included in Windows XP/2003/Vista/2008. If there is no gdiplus.dll on your system, you can download it from Microsoft and put it into the same directory where IECapt.exe resides.

Download (2008-06-10, 54 KB) (2008-04-27, 51 KB) (2006-11-06, 52 KB)

Source code

The source code is available in the CVS repositorty.


Open a command prompt and ask for help:

C:\> IECapt --help
 Usage: IECapt --url= --out=localfile.png
  --help                      Print this help page and exit
  --url=<url>                 The URL to capture (http:...|file:...|...)
  --out=<path>                The target file (.png|bmp|jpeg|emf|...)
  --min-width=<int>           Minimal width for the image (default: 800)
  --max-wait=<ms>             Don't wait more than (default: 90000, inf: 0)
  --delay=<ms>                Wait after loading (e.g. for Flash; default: 0)
  --silent                    Whether to surpress some dialogs
 ----------------------------------------------------------------------------- - (c) 2003-2008 Bjoern Hoehrmann - <>


IECapt# is a new and experimental version of IECapt written in C#. The source code is available in the CVS repositorty: IECapt.cs and IECaptComImports.idl. Feedback and patches welcome. To build it, use:

  1. midl IECaptComImports.idl
  2. tlbimp IECaptComImports.tlb
  3. aximp %SystemRoot%\system32\shdocvw.dll
  4. csc /r:IECaptComImports.dll /r:AxSHDocVw.dll /r:System.Windows.Forms.dll /r:System.Drawing.dll IECapt.cs


Björn Höhrmann (Donate via SourceForge)

Support this project Logo