←Select platform

MedWebViewerURI Property

Summary

Holds the URI for the MedicalWebViewer for accessing the web service.

Syntax
C#
C++/CLI
public string MedWebViewerURI { get; set; } 
public:  
   property String^ MedWebViewerURI 
   { 
      String^ get() 
      void set(String^ value) 
   } 

Property Value

This property is set when the StartApplication() method is called.

This property can be set by the user.

Remarks

This property holds the link for the MedicalWebViewer web services.

Usually has the structure of http[s]://[host]//MedicalViewer[version]/#/logon/autologin/[port]/[authentication token]

This property can be used to set the URL for a window hosting this MedicalWebViewer, such as a BrowserForm, which will automatically attempt to log into the MedicalWebViewer.

Example

This sample does the following:

  1. Initializes MedicalWebViewerExternalController object and performs a login with the credentials username = 'user', password = 'pass'.
  2. Writes the MedWebViewerURI to Console.
C#
using Leadtools; 
 
using Leadtools.Medical.WebViewer.ExternalControl; 
 
private void MedicalWebViewerExternalController_AccessMedWebViewerURI() 
{ 
   string applicationName = string.Empty; 
   string version = string.Empty; 
   int externalControlPort = 500; 
   string username = "user"; 
   string password = "pass"; 
 
   //Set up instance of MedicalWebViewerExternalController object 
   MedicalWebViewerExternalController controller = new MedicalWebViewerExternalController(); 
   controller.ViewerURL = "http://localhost/MedicalViewer22"; 
   controller.ServiceURL = "http://localhost/MedicalViewerServiceAsp22"; 
   controller.AspService = true; 
   controller.InitApplication(out applicationName, out version, externalControlPort); 
 
   ControllerReturnCode ret = controller.UserLogin(username, password); 
 
   if (ret == ControllerReturnCode.Success) 
   { 
      string sMsg = string.Format("Connection URI = {0}", controller.MedWebViewerURI); 
      Console.WriteLine(sMsg); 
   } 
 
   controller.CloseApplication(); 
 
   controller.Shutdown(); 
} 
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.