Captures as an image the visible part of the page displayed in the control and saves it in a PNG or JPEG image file
Syntax
Boolean = object.CapturePreview(FilePathAndName As String], [ImageFormat As oCaptureFormat], [Toview As Boolean = Faux]) As Boolean
The CapturePreview method syntax has these parts:
Element | Description |
Object | The object placeholder represents an OrdoWebView2 control |
FilePathAndName | String, Optional. The path and name of the file that should contain the captured image |
ImageFormat |
oCaptureFormat. Captured image format. Capture_As_PNG is
default |
Toview | Boolean. If True the image is displayed in the default Windows image file viewer application. False is the default |
Boolean | True if the capture was successful |
Remarks