Previous topicNext topic
Help > Events >
DownloadChecking

DownloadChecking Event

Fired periodically while a file is being downloaded.This event is almost identical to DownLoadInProgress . It adds the ability to cancel the download.

Syntax

Private Sub object_DownloadChecking(ByVal FileNameAndPath As String, ByVal FileName As String, ByVal Percent As Integer, ByVal BytesRead As Long, ByVal BytesMax As Long, ByRef CancelDownload As Boolean)

The DownloadChecking event syntax has these parts:

Element Description
Object The object placeholder represents an OrdoWebView2 control
FileNameAndPath String. The path and name of the file to download
FileNameString. The name of the file to download
Percent Integer. The percentage of the download already completed (between 0 and 100)
BytesReadLong. The number of bytes already downloaded
BytesMax Long. The number of bytes to download
CancelDownload Boolean. Setting CancelDownload to True will stop the download

Remarks     

  • This event is triggered following the call to the DownloadFile method

  • This event can be used instead of DownLoadInProgress . It adds the ability to cancel the download