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 OverviewThis article demonstrates use of ActiveX in Visual WebGui applications. For this example we used the RemoteDesktop ActiveX (COM element) to demonstrate this use. DetailsThe 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
|
|
|
Tags:
Architects, Developers, Wrapper, 2. Intermediate, 3. Advanced, Customization, Integration, ActiveX, Pre v6.3, v6.3
|
|
|
Tags:
Architects, Developers, 1. Beginner, 2. Intermediate, 3. Advanced, ActiveX, Flash, v6.3, v6.4 and Later
|
|
|
Tags:
Architects, Developers, 1. Beginner, 2. Intermediate, 3. Advanced, ActiveX, Flash, v6.3, v6.4 and Later
|
|
|
Tags:
Architects, Developers, 1. Beginner, 2. Intermediate, 3. Advanced, ActiveX, Flash, v6.3, v6.4 and Later
|
|
|
Tags:
Architects, Developers, 1. Beginner, 2. Intermediate, 3. Advanced, ActiveX, Flash, v6.3, v6.4 and Later
|
|
|
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
|
|
|
|