Previous topicNext topic
Help > Methods >
CapturePreview

CapturePreview Method

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
        oCaptureFormat
            Capture_As_PNG = 0
            Capture_As_JPG = 1

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