bigrollo posted this 13 January 2014
We have been using the MeadCo product for years and it's been great for most part. One question as we are using the standard .asp version but would like to be able to have the user alerted or administartor if an item failed to print. I don't see any type
of Error Handling that is executed when a request fails to print. The err. Number appears to only apply to license issues. Would love to call like an email procedure or log file when an Print Error has been detected. Please help. We are using code
very similiar to what i've posted below..
<%
' Apply licensing - the license must already be installed.
set secmgr = CreateObject("MeadCo.SecMgr")
secmgr.Apply "","{XXXX-XXXX-XXXX-XX}",X
' the object is dynamically created and destroyed
set factory = CreateObject("ScriptX.Factory")
factory.printing.header = "Report printed on the server"
factory.printing.footer = "Printed on &D"
factory.printing.PrintHTML "http://localhost/order.asp?number=" & Request.Form("number")
' After use, shut down the object to ensure that resources
' are released in a timely manner
factory.ShutDown
set factory = nothing
%>