Welcome Guest Search | Active Topics | Sign In | Register

Open popup in native Chrome Options
Andreas
Posted: Wednesday, November 28, 2018 7:42:55 AM
Rank: Member
Groups: Member

Joined: 12/2/2015
Posts: 25
Hi,

is there a way to open Chrome with window.open() and give back a handler to this window.
I tried it with
void WebView_NewWindow(object sender, NewWindowEventArgs e){
e.Accepted = false;
System.Diagnostics.Process.Start(e.TargetUrl);
}
but so I cannot control the new window

when I try it with the following code, I get an error
var printwWindow = $window.open(pdfUrl);
printwWindow.print();

thanks
eo_support
Posted: Wednesday, November 28, 2018 10:57:21 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Hi,

See here for how to handle NewWindow event correctly:

https://www.essentialobjects.com/doc/webbrowser/advanced/new_window.aspx

Thanks!
Andreas
Posted: Wednesday, November 28, 2018 3:49:04 PM
Rank: Member
Groups: Member

Joined: 12/2/2015
Posts: 25
Hi,

thank you.

but there is no way to open the native chrome and interact with this window?

thanks
eo_support
Posted: Wednesday, November 28, 2018 4:30:11 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
No. EO.WebBrowser and Chrome are basic on the same codebase but they are two completely separate applications. There is no dependency/communications between the two.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.