May I know why i get below error?
ScriptX version installed: 6.1.432.1
Unable to access printer object - there is a ScriptX configuration error. Error
on create: (Error code: -2147467238)
<HTML>
<HEAD><TITLE>ScriptX Printing Server Test 1</TITLE></HEAD>
<BODY>
<H1>Testing ScriptX Printing.</H1>
<h3>You are logged in as: [<%= Request.ServerVariables("LOGON_USER")%>] at: <%=
Now %></h3>
<%
Response.Expires = 0
dim factory,p
dim a,b,c,d
Set factory = server.CreateObject("ScriptX.Factory")
on error resume next
factory.GetComponentVersion "ScriptX.Factory",a,b,c,d
Response.Write("ScriptX version installed: " & a & "." & b & "." & c & "." & d
& "<br>")
set p = factory.printing
if err.Number <> 0 then
Response.Write "Unable to access printer object - there is a ScriptX
configuration error. Error on create: " & err.description & " (Error code: " &
err.Number & ")"
else
b = p.IsSpooling
if err.Number <> 0 then
Response.Write "Printing is not licensed: " & err.description & "
(Error code: " & err.Number & ")"
else
Response.Write "Printing is licensed"
end if
end if
set p = nothing
factory.ShutDown
set factory = nothing
%>
</BODY>
</HTML>
May I know why i get below error? ScriptX version installed: 6.1.432.1 Unable to access printer object - there is a ScriptX configuration error. Error on create: (Error code: -2147467238)
this is the code. <%@ LANGUAGE="VBScript"%>
<!-- MeadCo ScriptX --> <object id=factory style="display:none" classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" codebase="http://www.meadroid.com/scriptx/ScriptX.cab#Version=6,1,432,1"> </object>
<HTML> <HEAD><TITLE>ScriptX Printing Server Test 1</TITLE></HEAD> <BODY> <H1>Testing ScriptX Printing.</H1> <h3>You are logged in as: [<%= Request.ServerVariables("LOGON_USER")%>] at: <%= Now %></h3> <% Response.Expires = 0 dim factory,p dim a,b,c,d Set factory = server.CreateObject("ScriptX.Factory") on error resume next factory.GetComponentVersion "ScriptX.Factory",a,b,c,d Response.Write("ScriptX version installed: " & a & "." & b & "." & c & "." & d & "<br>") set p = factory.printing if err.Number <> 0 then Response.Write "Unable to access printer object - there is a ScriptX configuration error. Error on create: " & err.description & " (Error code: " & err.Number & ")" else b = p.IsSpooling if err.Number <> 0 then Response.Write "Printing is not licensed: " & err.description & " (Error code: " & err.Number & ")" else Response.Write "Printing is licensed" end if end if set p = nothing factory.ShutDown set factory = nothing %> </BODY> </HTML>