title: How to read SAP HTMLViewer Control data with VBA or C#
body: <p>I'm trying to automate a SAP task in which a HTMLViewercontrol is used to disply some data and update if required.</p>
  
  <p>The HTMLViewercontrol looks like below after loading.</p>
  
  <p><a href="https://i.stack.imgur.com/QKOtg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QKOtg.png" alt="HTMLViewer control"></a></p>
  
  <p>I tried to record the loading of the page but sadly, don't get any event in it.</p>
  
  <p>After scratching my head for hours I tried to record the script while editing values and got below script.</p>
  
  <pre><code>session.findById("wnd[0]/usr/cntlMAIN_CONTAINER/shellcont/shell/shellcont[1]/shell/shellcont[1]/shell/shellcont[1]/shell/shellcont[1]/shell").sapEvent "","COMMAND=NEW&amp;ELEMENT=INP_I_5_I_=123456789&amp;INP_I_6_I_=1.000&amp;INP_I_7_I_=&amp;INP_I_8_I_=16.99&amp;INP_I_9_I_=16.99&amp;INP_I_10_I_=5.50&amp;INP_I_11_I_=","sapevent:A1F1"
  session.findById("wnd[0]/usr/cntlMAIN_CONTAINER/shellcont/shell/shellcont[1]/shell/shellcont[1]/shell/shellcont[1]/shell/shellcont[1]/shell").sapEvent "","COMMAND=ENT&amp;ELEMENT=INP_I_5_I_=123456789&amp;INP_I_6_I_=1.000&amp;INP_I_7_I_=&amp;INP_I_8_I_=16.99&amp;INP_I_9_I_=16.99&amp;INP_I_10_I_=5.50&amp;INP_I_11_I_=","sapevent:A1F1"
  </code></pre>
  
  <p>I'm not getting how can I read <code>sapevent</code> value before editing.</p>
  
  <p>Can any one please share their expertise in this. </p>