Getting Exception if Printer Name is incorrect

Hi,

I am using diagram.PrintManager.Print(printDialog) for printing my diagram. But if my printer is not connected or it's an incorrect printer installed,it's throwing an exception.
Is there any workaround for the same?
Thanks,
Abdi

I’m not sure what you want to do. Would catching that exception satisfy your needs?