You can embed the Remote Desktop ActiveX control in a Web page by inserting the HTML <OBJECT> tag, as in
the following example.
<OBJECT language="vbscript" ID="MsRdpClient"
CLASSID="CLSID:9059f30f-4eb1-4bd2-9fdc-36f43a218f4a"
CODEBASE="msrdp.cab#version=5,1,2524,0"
WIDTH=<% resWidth = Request.QueryString("rW")
if resWidth < 200 or resWidth > 1600 then
resWidth = 800
end if
Response.Write resWidth %>
HEIGHT=<% resHeight = Request.QueryString("rH")
if resHeight < 200 or resHeight > 1200 then
resHeight = 600
end if
Response.Write resHeight %>>
<PARAM NAME = property1 value = property1value>
<PARAM NAME = property2 value = property2value>
...
</OBJECT>
The value that the WIDTH keyword is set to is the width, in pixels, of the Remote Desktop Services session displayed
on the Web page. The value that the HEIGHT keyword is set to is the height, in pixels, of the Remote Desktop Services
session. The value that the CODEBASE keyword is set to is the location of the file containing the Remote Desktop
Web Connection code. The name of this file is Msrdp.cab, and it is located in the directory in which you
installed the Remote Desktop ActiveX control and sample Web page. The PARAM NAME keyword is set to one or more of
the parameters supported in Msrdp.ocx.
Note that the Remote Desktop ActiveX control object parameters are not listed in this document. To view them,
open Msrdp.ocx in a tool such as Oleview.exe or the Visual Basic Object Browser. Msrdp.ocx is located in
Msrdp.cab. For more information, see
Downloading and
Using the Remote Desktop ActiveX Control.
Send comments about this topic to Microsoft
Build date: 6/26/2009