سؤال

I am using Adobe control in a WindowsFormsHost control to render PDFs. This feature isnt crucial for the application and not every user will have Adobe Reader installed.

My question is, what will be the best way to detect that something is wrong (or will go wrong once I try to open something) with the control, and make its Visibility to Collapsed afterwards?

I need to find it out before any PDF is actually opened, since the application needs to download the PDFs and they can be large.

هل كانت مفيدة؟

المحلول

I found no way of catching all exceptions that occur in this control. If you dont want it to freeze your application, run it in a completely separate process.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top