Function Documentation
StartSnap: Start the snap job.
- Syntax
long StartSnap ();
- Return Value
If the function succeeds, the return value is zero.
If the function fails, the return value is nonzero.
It may return one of the following values:
| Error code |
Description |
| 0 |
Return successful |
| 1 |
The snap process is time out. You can call function SetTimerOut to set the time out value. |
| 2 |
The trial version is expired. |
| 3 |
The network or website errors. |
- Remarks
The function StartSnap navigates a hidden WebBrowser to open the specified URL and takes a snapshot for the web page. You must call function SetURL() to set the URL to be taken snapshot before call StartSnap.
SetURL: Set the URL for the web page to be taken snapshot.
- Syntax
void SetURL(
string strURL
);
- Parameters
strURL
[in] The URL for the web page to be taken snapshot. It can be a HTTP webpage URL, also can be a local HTML file. For example: "file:///C:/mytest.htm".
SetActiveXEnabled: Enable/Disable ActiveX controls on the web page.
- Syntax
void SetActiveXEnabled (
bool bEnable
);
- Parameters
bEnable
[in] Boolean value that is true to enable ActiveX control on the web page.
GetActiveXEnabled: Query whether ActiveX is enabled on the web page
- Syntax
bool GetActiveXEnabled ();
- Return Value
Boolean value that is true if the ActiveX control is enabled on the web page.
SetJavaEnabled: Enable/Disable Java applets on the web page.
- Syntax
void SetJavaEnabled (
bool bEnable
);
- Parameters
bEnable
Boolean value that is true to enable Java applets on the web page.
GetJavaEnabled: Query whether Java applets is enabled on the web page.
- Syntax
bool GetJavaEnabled ();
- Return Value
Boolean value that is true if the Java applets is enabled on the web page.
|