MedicalWebViewerBrowser Enumeration

Summary
Enumeration used to specify which browser the MedicalWebViewerExternalController will launch.
Syntax
C#
C++/CLI
public enum MedicalWebViewerBrowser 
public enum class MedicalWebViewerBrowser : public System.Enum, System.IComparable, System.IConvertible, System.IFormattable   
Members
ValueMemberDescription
0Default Use the browser that is currently set to be the system default.
1InternetExplorer Use Internet Explorer
2GoogleChrome Use Google Chrome
3Firefox Use FireFox
4Opera Use Opera
5Edge Use Edge
6User User controlled browser
Example
C#
using Leadtools; 
 
using Leadtools.Medical.WebViewer.ExternalControl; 
 
private void MedicalWebViewerExternalController_InitApplication() 
{ 
   string applicationName; 
   string version; 
   int externalControlPort = 500; 
 
   // Username a password to log in 
   // This will be the username and password that you created when running the CSPacsDatabaseConfig.exe demo 
   string username = "bob"; 
   string password = "bob"; 
 
   // These are the UIDs of datasets that are preinstalled in the CSStorageServerMananger.exe demo database 
   const string jonesPatientId = "12341234"; 
   const string jonesSeriesInstanceUid = "1.2.392.200036.9107.500.305.5577.557709021107405.121"; 
 
   MedicalWebViewerExternalController controller = new MedicalWebViewerExternalController("http://localhost/MedicalViewer/"); 
 
   controller.Timeout = 30; 
   controller.InitApplication(out applicationName, out version, externalControlPort); 
   controller.SelectedBrowser = MedicalWebViewerBrowser.GoogleChrome; 
   ControllerReturnCode ret = controller.UserLogin(username, password); 
 
   DisplayResult(ret); 
   controller.ShowSeries(jonesSeriesInstanceUid); 
 
   string sMsg = string.Format("Displaying SeriesInstanceUID '{0}' in a {1} browser", jonesSeriesInstanceUid, controller.SelectedBrowser.ToString()); 
   Console.WriteLine(sMsg); 
   controller.CloseApplication(); 
 
 
   controller.SelectedBrowser = MedicalWebViewerBrowser.InternetExplorer; 
   ret = controller.UserLogin(username, password); 
   controller.ShowPatient(jonesPatientId); 
   sMsg = string.Format("Displaying PatientID '{0}' in a {1} browser", jonesPatientId, controller.SelectedBrowser.ToString()); 
   Console.WriteLine(sMsg); 
 
   controller.CloseApplication(); 
 
   // Shutdown the command queue 
   controller.Shutdown(); 
} 
 
private void DisplayResult(ControllerReturnCode ret) 
{ 
   if (ret != ControllerReturnCode.Success) 
   { 
      Console.WriteLine(ret.ToString()); 
   } 
} 
Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical.WebViewer.ExternalControl Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.