|
Rank: Newbie Groups: Member
Joined: 6/26/2017 Posts: 9
|
We have developed an Outlook Add-in that displays web pages from our web-based software in a EO WebBrowser.
We are using the GetText method on a number of WebView objects in the relevent WebView_SizeChanged and WebView_LoadCompleted events. This call appears to hang not only Outlook but the whole machine.
Is there an alternative method we can use to check whether the WebView object has text in it.
Example of the code:
private void webView1_LoadCompleted(object sender, EO.WebBrowser.LoadCompletedEventArgs e) { if (webView1.GetText().Length != 0) { } }
I can send a sample project if needs be.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi,
You can not do that. GetText will not return until the event handler returns. You can try to use BeginInvoke to delay the call and that should work for you.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 3/13/2017 Posts: 33
|
The 2018 versions WOULD work without this issue. It hangs in the 2019 version.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
KimKamp wrote:The 2018 versions WOULD work without this issue. It hangs in the 2019 version. Each build uses a different version of the browser engine and it involves significant changes. The load notification in 2019 is implemented differently than that of 2018. So while we try to make the change as transparent to the end user as possible, it still can have user noticeable differences that can not be avoided. In another word, it works in 2018 this way doesn't mean it must work exactly this way in 2019. Some of these changes are unavoidable. So please try our suggested workaround and let us know if that works for you.
|
|