hi all,
I'm using a Printer object to do some printing job in my VB application. However, i need to trap the error when the printer is not available or the printer settings is not right. I tried to put in some error catcher, but it seems that the code will go on executing before the printer object returns an error. Most of the time, the following codes will have finished executing before the error is trapped. My question is, how can i make sure that the printer is available? Is it any codes that i can use to check the printer availability before the codes proceed to the next statements? Thanks in advance.
Rgds,
hkung
I'm using a Printer object to do some printing job in my VB application. However, i need to trap the error when the printer is not available or the printer settings is not right. I tried to put in some error catcher, but it seems that the code will go on executing before the printer object returns an error. Most of the time, the following codes will have finished executing before the error is trapped. My question is, how can i make sure that the printer is available? Is it any codes that i can use to check the printer availability before the codes proceed to the next statements? Thanks in advance.
Rgds,
hkung