Search code examples
vb.netexceptioncomobject

Com Object Exception


I wrote an application that loops through a set of records and prints two things.

One is a report from SSRS wich works correctly.

The other is a drawing that uses a COM object to print. The COM object randomly fails and causes the program to quit.

Is there a way to stop it from killing the entire program when the COM Object fails? I have tried catch every exception at every level and it still does not work.


Solution

  • Do you have the code of COM object that you are calling. If you have code then check whether there any exit command on failure.