Hi @Wolf ,
So this is strange, and only started happening after implementing the Pro WebViewer.
In my AddIn, the user can choose to open the Uri that gets generated in a it's own web browser or directly in a dockpane (using the Pro WebViewer....which is working great). But now that I have replaced the old Web Control I was using with the Pro WebViewer, when I try to open the same Uri in the system default web browser I get an error.
Do you think there is a connection to the new Pro WebViewer causing a conflict in the background??
This is the line that I get the error on:
System.Diagnostics.Process.Start(streetViewLink);
And here is the error....can't find the file specified???
I've never had issues with this until I replaced the old Web Control with this new Pro WebViewer control. Here is the code.
if (Properties.Settings.Default.svBrowserSetting == true)
{
//*****Use this code if you want to open the separate web browser
string streetViewLink = @"https://www.google.com/maps/@?api=1&map_action=pano&viewpoint=" + lat + "," + lng + "&Heading=";
System.Diagnostics.Process.Start(streetViewLink); //opens the webbrowser
}
else
{
//Open the dockpane if it isn't already open
DockPane pane = FrameworkApplication.DockPaneManager.Find("StreetView_ArcPro_Dockpane");
pane.Activate();
//Access the web control through the View
DockpaneView myView = DockpaneView.MyDockpaneView;
Uri googleUri = new Uri(@"https://www.google.com/maps/@?api=1&map_action=pano&viewpoint=" + lat + "," + lng + "&Heading=");
myView.webViewControl.Source = googleUri;
}