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 How do I use the ScriptX object for deployment details.

In server side/application use, this object is directly created by the COM activation appropriate for the development language/tool. 

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
%>

WSH script (JScript):

ScriptX.Factory")
factory.printing.PrintHTML("http://msdn.microsoft.com/")

Properties

printing, rawPrinting