OnRequestCurrentHtml
Interface AntViewDocument
Type: Event
Parameters: String Html
Returns: None
Results from RequestCurrentHtml.
Example in Visual Basic:
Option Explicit
Public WithEvents Document As AntviewAx.AntViewDocument
Private Sub Document_OnRequestCurrentHtml(ByVal Html As String)
MsgBox Html
End Sub
Private Sub GetHtmlButton_Click()
InfoText.Text = "Requesting Html from current page via the AntView Document interface"
Document.RequestCurrentHtml
End Sub
Private Sub Form_Initialize()
Debug.Print "Form initialize"
Set Document = CreateObject("AntViewAx.AntViewDocument", "")
Document.BrowserDispatch EdgeWebBrowser.IDispatchPointer
EdgeWebBrowser.UnlockControl "ExampleCompany", "WI5PO2-2KSU3Q-HWFXFU-IUMU2V-QF8P2F"
EdgeWebBrowser.EventsUseHexadecimal = True
EdgeWebBrowser.NextFocusWindowHandleHwnd = GoButton.hwnd
EdgeWebBrowser.PreviousFocusWindowHandleHwnd = GetHtmlButton.hwnd
End Sub
Private Sub Form_Load()
EdgeWebBrowser.CreateWebView
Form_Resize
End Sub
Example:
AntView - The MS Edge WebView2 ActiveX control Date last changed: 04/16/2025