Search KB Filter article types
RemoteDesktop ActiveX use
Categories: ActiveX, Wrapped Controls
Tags: Developers, Wrapper, 2. Intermediate, 3. Advanced, Wrapping Controls, ActiveX, v6.4 and Later
Revision: 1
Posted: 13/Jan/2010
Updated: 23/July/2010
Status: Publish
Types: Code

This article will have a few sections added to it soon, based on the following article type skeleton: CodeSample
Overview

This article demonstrates use of ActiveX in Visual WebGui applications. For this example we used the RemoteDesktop ActiveX (COM element) to demonstrate this use.

Details

The application uses a Visual WebGui Custom Control, the Skin of which contains a JavaScript file and an XSLT file. The XSLT contains the structure and layout of the control in client-side:

 
<DIV STYLE="display: none; width:100%; height:100%" >
  <OBJECT ID="TRG_{@Id}"
          LANGUAGE="vbscript"
      CLASSID="CLSID:4eb89ff4-7f78-4a0f-8b8d-2bf02e94e4b2"
      WIDTH="100%"
      HEIGHT="100%">
  </OBJECT>
</DIV>

The JavaScript contains the code that initializes the ActiveX object:

 
// function code start
   var objMsRdpClient             = Web_GetTargetElementByDataId(strGuid);
   objMsRdpClient.server          = strComputer;
   objMsRdpClient.Domain          = strDomain; 
   objMsRdpClient.username        = strUserName;
   objMsRdpClient.FullScreenTitle = strComputer;
   objMsRdpClient.FullScreen      = false;
   objMsRdpClient.DesktopWidth    = 800;
   objMsRdpClient.DesktopHeight   = 600;
   objMsRdpClient.AdvancedSettings2.ClearTextPassword = strPassword;
   objMsRdpClient.AdvancedSettings2.RedirectDrives     = false;
   objMsRdpClient.AdvancedSettings2.RedirectPrinters   = true;
   objMsRdpClient.AdvancedSettings2.RedirectPorts      = false;
   objMsRdpClient.AdvancedSettings2.RedirectSmartCards = false;
   objMsRdpClient.Connect();
   objMsRdpClient.parentNode.style.display = "block";
// function code end

Requirements
  • This application works only on Visual WebGui v6.4.x or later versions.
  • You must have the Remote Desktop Services (Terminal Services) - mstscax.dll installed on your system. This COM is identified by this GUID: "4eb89ff4-7f78-4a0f-8b8d-2bf02e94e4b2".
  • This application will run only on MS Internet Explorer.
  • You must enable the "Microsoft Terminal Services Client Control (redist)" IE add-on.
References


  •  "With auto login" means that the password is sent from the server to the client in clear-text, so the ActiveX can auto-login. It is critical that you use SSL when deploying this application, otherwise passwords could be discovered.

About the author

Related Articles

ActiveX  
Title Update Author
Tags: Architects, Developers, Wrapper, 2. Intermediate, 3. Advanced, Customization, Integration, ActiveX, Pre v6.3, v6.3
02/Jan/2008    2008/01/02
Tags: Architects, Developers, 1. Beginner, 2. Intermediate, 3. Advanced, ActiveX, Flash, v6.3, v6.4 and Later
30/Oct/2010    2010/10/30
Tags: Architects, Developers, 1. Beginner, 2. Intermediate, 3. Advanced, ActiveX, Flash, v6.3, v6.4 and Later
13/Nov/2010    2010/11/13
Tags: Architects, Developers, 1. Beginner, 2. Intermediate, 3. Advanced, ActiveX, Flash, v6.3, v6.4 and Later
30/Oct/2010    2010/10/30
Tags: Architects, Developers, 1. Beginner, 2. Intermediate, 3. Advanced, ActiveX, Flash, v6.3, v6.4 and Later
30/Oct/2010    2010/10/30
Hello Everyone, I've successfully wrapped the Crystal Reports Viewer for VisualWebGUI. In addition to the wrapper, I demonstrate the use of 2 other approaches using a Server Control and an AspPageBox/AspPageBase. I hope this helps you! Thank you - Ryan D. Hatch ryan [.] hatch [at] konect [com]
Tags: Developers, Wrapper, 1. Beginner, 2. Intermediate, Wrapping Controls, Pre v6.3, v6.3, 3. Advanced
08/Jan/2009    2009/01/08
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS