Community Forum

Is there a way to return an error if request wasn't printed?

Profile Image 1 Posts 1 Karma
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..smiley eek

<% 

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

 

Profile Image 189 Posts 189 Karma
Jerry posted this 14 January 2014

HI

 

The thing abvout server-side printing is that we assume no UI / operator, so you would need to be able to fully automate this.

 

Just one thought .... have you checked out PrintHTMLEX ?

 

http://scriptx.meadroid.com/knowledge-bank/technical-reference/printing-factoryprinting/printhtmlex.aspx?id=1576

 

 

Post Edited 14 January 2014

Profile Image 1 Posts 1 Karma
ktadikamalla posted this 18 February 2014

Hi,

Using PrintHTMLEX we are able to print only HTML docs. Is there a way we can use the same method for PDF docs as well? PrintPDF method does not have a callback method as param, so there is no way to find out if some error occured while pritning. Please confirm.

 

Profile Image 189 Posts 189 Karma