Archive for November, 2007

How to call SnapHtmlString() function with image on the internet?

Friday, November 30th, 2007

The following demo program written in VBScript shows how to call SnapHtmlString() function with image on the internet.

Dim snap
Set snap = CreateObject("HtmlCapture.SnapShooter.1")
snap.SetImageEnabled(True)
snap.SetActiveXEnabled(True)

snap.SnapHtmlString “<img src=’http://www.google.com/intl/en_ALL/images/logo.gif’>”
snap.SaveMultiPageTiff "demo.tiff", 2000

How to remove the blue lines on the captured image?

Friday, November 30th, 2007

The blue lines are added because your HtmlCapture is trial version. Once you buy our product, an reg code will be sent to you. Then you call SetRegInfo() with your reg name and reg code before calling SnapUrl() to remove the lines.

Here’s the demo code for javascript:
var snap = new ActiveXObject("HtmlCapture.SnapShooter.1");
snap.SetRegInfo("Your REGNAME", "Your REGCODE");
snap.SnapUrl("http://maps.google.com");
snap.SaveImage("snapshot.png");