Is it possible to avoid the printer error message.

For Eg if the printer is out of paper , I have to capture the message in VB and avoid the default Window Error message
Is it possible. Can u send any codes

Thanks & Regards
Raja