Rank: Newbie Groups: Member
Joined: 3/9/2016 Posts: 3
|
We have a client that uses this browser component in their app, which uses our website to print packing slips. I need to create these packing slips and be able to test them as if I were using their app. I have created a basic simple forms app in VS2015 that uses the EO.WebControl and lets me hit the website easy enough. However, I need to be able to allow a popup initiated from the website's JavaScript (not from my code inside the app) in order to actually see the format of what is printing.
I get the error: "The current page tries to open a new window. Please handle NewWindow Event"...
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi, The message already told you exactly what you need to do. See here for more details: http://www.essentialobjects.com/doc/webbrowser/advanced/new_window.aspxYou can also see the source code in the TabbedBrowser sample application to get an idea of how to handle this event. The key is this event passes you a WebView object and you must display that WebView to the user (in your case put it in a popup window). Thanks!
|