FAQ

Frequently asked questions about HtmlCapture ActiveX Control.

Question: Can I get vector images using HtmlCapture?
Answer: YES. You can covert html files to EMF and WMF just by call ISnapShooter.SaveImage() method of HtmlCapture.

Question: Can I save a web page selectively?
Answer: YES. Using ISnapShooter.SetActiveXEnabled(), ISnapShooter.SetImageEnabled(), ISnapShooter.SetJavaEnabled(), ISnapShooter.SetScriptEnabled() and ISnapShooter.SetVideoEnabled() methods of HtmlCapture, you can freely control whether to download them or not.

Question: What languages does it support?
Answer: VC, C#, Delphi, VB, C++ Builder, JScript, Perl, VBScript, ASP, ASP.net and PHP etc. We have provided Samples for all of the above languages.

Question: Can I set color depth of the resulting image?
Answer: YES. By calling ISnapShooter.SetBpp(), you can set color depth of the resulting image.

Question: How to remove the blue lines on the captured image?
Answer: Once you purchased HtmlCapture, a regcode will be emailed to you. Then you may call ISnapShooter2.SetRegInfo() with your reg name and reg code to remove those blue lines and trial infos.

Question: How can I choose Firefox as the default rendering engine?
Answer: Call SetRenderingEngine("FIREFOX") before you calling SnapXXX() functions.

Question: How can I save snapshots into a PDF document?
Answer: Call ISnapShooter2.CreatePDF() first. Then for each snapshot, call ISnapShooter2.AddImageToPDF() once. Don't forget to call ISnapShooter2.ClosePDF() to close the PDF document.

Question: How can I use a different user agent string?
Answer: Call ISnapShooter2.SetUserAgent() function with your user agent string.

Question: Can I set custom HTTP headers for a snapshot process?
Answer: YES. Call ISnapShooter2.SetCustomHeaders() function before calling SnapXXX() functions.

Question: Can I draw some stuff programmatically to each snaphsot image?
Answer: YES. Write your drawing codes in your ISnapShooterEvents.OnDraw() event handler. There is an HDC argement passed in.

Question: Can I suppress the Login dialog while taking snap of a secure website?
Answer: YES. Call ISnapShooter2.SetAccessCredential() function with your user name and password before calling SnapXXX() functions.

Question: I access the web via a proxy server. How can I setup the proxy in HtmlCapture?
Answer: Call ISnapShooter2.SetProxy() function with your proxy server's address, user name and password (if needed).

Question: How can I control the dimension of the snapshot image?
Answer:

Question: Can I retrieve a list of links on the webpage just snapped?
Answer: YES. You may call ISnapShooter2.GetDocumentLinks() to retrieve the links.

Question: Can I post some data to the webpage in snapshot process?
Answer: YES. You may call ISnapShooter2.SetPostData() before calling ISnapShooter2.SnapUrl() function.

Question: I got an "Access Violation" error while running the Delphi demo. How can I fix it?
Answer: Remove the HtmlCapture_TLB.pas from project and re-import HtmlCapture.dll.

Question: Does the license allow me to redistribute your .dll's ?
Answer: If you use HtmlCapture in a desktop application, then YES. If you use it on a web application, please contact us (sales@polestarsoft.com).

Question: Can I do something with the webpage's content in the snapshot process?
Answer: Maybe ISnapShooter2.SetStartupScript() function is helpful. For examle, SetStartScript("document.body.innerHTML += 'My Extra Content'");

Question: Can I save a long HTML file into separate images?
Answer: YES. You may separate the image into several parts. For each part, call ISnapShooter2.SetClipRect() and ISnapShooter2.SaveImage(). For an example, see the SeparateImage demo in DEMOS directory.

Question: I got an error with follwing message - "COM object with CLSID {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} is either not valid or not registered". How can I fix it?
Answer: The error is cause by not registering HtmlCapture. You may run the setup program again or run regsvr32 HtmlCapture.dll from command line to register it.





Prev Page      Next Page




Copyright © 2006-2008 Polestar Soft, Inc. All rights reserved.