factory
Description
Represents the ScriptX object itself on an HTML page for scripting by its id. For historical reasons, we name it factory.
Note that you cannot use CreateObject() or new ActiveXObject() to call ScriptX client-side. You should call ScriptX in all client-side cases by the id of the on-page ScriptX <OBJECT>.
See Installing ScriptX on client PCs for deployment details.
In server-side or application use this object is directly created by the COM activation appropriate for the development language/tool.
Basic properties
printing, ScriptXVersion, SecurityManagerVersion
Licensed properties
Basic methods
baseUrl, ComponentVersionString, OnDocumentComplete, relativeUrl, Shutdown
Licensed methods
IsUniqueIDAvailable, ResetUniqueID, UniqueID
Examples
HTML page:
<object id=factory viewastext style="display:none"
classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
codebase="smsx.cab#Version=8,3,0,4">
</object>
ASP.NET code behind (C#):
MeadCo.ScriptX.Factory factory = null;
MeadCo.ScriptX.printing printing = null;
factory = new MeadCo.ScriptX.Factory();
printing = (MeadCo.ScriptX.printing) factory.printing;
ASP page (VBScript):
<%
set factory = CreateObject("ScriptX.Factory")
factory.printing.PrintHTML "http://host/orders.asp?number=" & Request.Form("number")
set factory = nothing
%>
Powershell:
$factory = New-Object -ComObject ScriptX.Factory
$factory.printing.PrintHTML("http://msdn.microsoft.com/")