Sample Programs

 

More than 30 samples included in the HtmlCapture distribution file for the most popular programming languages. The samples will let you start creating your own projects immediately. After the installation of HtmlCapture, all of them could be found in the folder HTMLCAPTURE/demos/. Here is a list of them.

Collapse All

ASP Samples

  • MainDemo
    The simplest example shows how to take snapshot of a webpage in ASP
  • Batch
    Shows how to convert html to image in batch in ASP.
  • MultiPagePDF
    Shows how to take snapshots of webpages and save them into a multi-page PDF document in ASP.
  • SeparateImage
    Shows how to separate a long webpage into several images in ASP.
  • Thumbnail
    Shows how to create a thumbnail image in the memory and output to client directly in ASP.

C# Samples

  • MainDemo
    The simplest example shows how to take snapshot of a webpage in C#.
  • Batch
    Shows how to convert html to image in batch in C#.
  • MultiPagePDF
    Shows how to take snapshots of webpages and save them into a multi-page PDF document in C#.
  • SeparateImage
    Shows how to separate a long webpage into several images in C#.
  • SnapWebBrowser
    Shows how to take snapshot from a existing web browser instance in C#.

C++ Builder Samples

  • MainDemo
    This main demo shows the usage of almost all functions in HtmlCapture.
  • MultiPagePDF
    Shows how to take snapshots of webpages and save them into a multi-page PDF document in C++ Builder.

Delphi Samples

  • MainDemo
    This main demo shows the usage of almost all functions in HtmlCapture.
  • MultiPagePDF
    Shows how to take snapshots of webpages and save them into a multi-page PDF document in Delphi.

JScript Samples

  • MainDemo
    The simplest example shows how to convert webpage to image in JScript
  • MultiPageTiff
    Shows how to convert a long webpage to multi-page TIFF file in JScript.
  • GetSource
    Shows how to get the HTML source of a webpage in JScript.
  • MultiPagePDF
    Shows how to convert a long webpage to multi-page PDF file in JScript.
  • SeparateImage
    Shows how to separate a long webpage into several images in JScript.

PHP Samples

  • MainDemo
    The simplest example shows how to take snapshot of a webpage in PHP.
  • MultiThread
    This demo starts multiple snap tasks simultaneously to show HtmlCapture's multi-thread capability.
  • MultiPagePDF
    Shows how to take snapshots of webpages and save them into a multi-page PDF document in PHP.
  • SeparateImage
    Shows how to convert long html to several separate image files in PHP.
  • Thumbnail
    Shows how to create a thumbnail image in the memory and output to client directly in PHP.
  • Batch
    Shows how to convert html to image in batch in PHP.

VB Samples

  • MainDemo
    This main demo shows the usage of almost all functions in HtmlCapture.

VBScript Samples

  • MainDemo
    The simplest example shows how to convert webpage to image in VBScript
  • MultiPageTiff
    Shows how to convert a long webpage to multi-page TIFF file in VBScript.
  • GetSource
    Shows how to get the HTML source of a webpage in VBScript.
  • MultiPagePDF
    Shows how to convert a long webpage to multi-page PDF file in VBScript.
  • SeparateImage
    Shows how to separate a long webpage into several images in VBScript.

VC Samples

  • MainDemo
    This main demo shows the usage of almost all functions in HtmlCapture V2.0.
  • IEButtom
    This sample adds a button to the Internet Explorer toolbar to take snapshot take snapshot of current URL. It demostrates how to use the SnapWebBrowser funtion in VC.
  • MultiPagePDF
    Shows how to take snapshots of webpages and save them into a multi-page PDF document in VC.
  • SnapWebBrowser
    Shows how to take snapshot from a existing web browser instance in VC.