Unhandled Com exception on Workbook.Save()

Hi, I am evaluating Cells .Net in a CCW called from unmanaged code. I have found that an unhandled exception in my C# code will cause a Com exception but that I can add try/catch code and it gets caught within my C#code. However if I save to a file that exists but is in use by Excel, I get a Com exception that does not get caught.

I expect an exception of some kind in this situation but I need to be able to catch it within my C# code.
Thanks,
Bill Below

Hi,


Thanks for sharing some details.

Well, handling every type of exceptions and acquire seamless .NET exception logging from COM client is complex scenario and challenging on its own. Please see the document for your reference, it may help you to accomplish the task:
https://msdn.microsoft.com/en-us/magazine/cc188710.aspx

Thank you.