Class GuiHTMLViewer
Wraps a SAP GUI HTML viewer control (GuiHTMLViewer).
These controls embed an HTML page (or web application) inside a SAP
screen and are used for, e.g., web-based selection helps or BI content.
public class GuiHTMLViewer : GuiComponent
- Inheritance
-
GuiHTMLViewer
- Inherited Members
Properties
BrowserHandle
The Win32 window handle of the embedded browser control. Useful for low-level UI automation via Win32 or UI Automation APIs when the SAP scripting layer alone is insufficient.
public int BrowserHandle { get; }
Property Value
Methods
FireSapEvent(string, string, string)
Fires a SAP event defined inside the embedded HTML page. HTML pages in GuiHTMLViewer communicate with ABAP by raising named SAP events via JavaScript; this method triggers the same mechanism from the scripting layer.
public void FireSapEvent(string eventName, string param1 = "", string param2 = "")
Parameters
eventNamestringThe SAP event name to fire (e.g.
"BUTTON_CLICK").param1stringFirst optional parameter passed with the event.
param2stringSecond optional parameter passed with the event.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.