Click here to Skip to main content
15,887,432 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,

I am giving a direct print without opening a print dialog box.
Every thing is working fine,but the thing is if there is any error while printing I am not able to catch the error.

I have tried Window.onbeforeerror and onaftererror

and try catch

but of no use....

kindly help me in this

I am sure there is some solution for this problem or a variable which tells me unable to print

Thanks in advance
varun
Posted

1 solution

One thing what we can do for it is,
we can have a log file and we can catch the exception message in the code and write it into log file.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900