Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
440
HtmlElement property
posted

Hi,

It's possible create property exposing field _htmlElement? I'd like to use it to invoke javascript from my code.

I need property like this:

public HtmlElement HtmlElement
        {
            get
            {
                return _htmlElement.Children[0] as HtmlElement;
            }
        }
to invoke:

var contentWindow = reportView.HtmlViewer.HtmlElement.GetProperty("contentWindow") as ScriptObject;
if (contentWindow != null)
{
contentWindow.Invoke("javaScriptMethod");
}

Best regards