Contents - Index - Top


OnRequestCurrentHtml

Interface AntViewDocument

 

Type: Event

Parameters: String Html

Returns: None

 

 

Results from RequestCurrentHtml.

 

Example in DataFlex:

 

  

  Object oDocument is a cComAntViewDocument

    Set peAutoCreate to acAutoCreate

    

    Procedure OnComRequestCurrentHtml String llHtml  

      Showln llHtml

    End_Procedure

    

    Procedure ConnectBrowser

       Variant vBrowser

       

       Get pvComObject of oEdgeWebBrowser to vBrowser

       Set ComCurrentBrowser to vBrowser

    End_Procedure

    

  End_Object

  

  Object oEdgeWebBrowser is a cComAntView

 

 

 

and calling function:

 

   Object oGetHtmlButton is a Button

     Set Size to 14 32

     Set Location to 199 339

     Set Label to "get Html"

     Set peAnchors to anBottomRight

 

     Procedure OnClick

       Send ConnectBrowser to oDocument

       Send ComRequestCurrentHtml to oDocument

     End_Procedure

 


AntView - The MS Edge WebView2 ActiveX control Date last changed: 09/25/2024