Quantcast
Channel: Adobe Community: Message List - Acrobat SDK
Viewing all articles
Browse latest Browse all 10848

Re: Class not registered (Exception from HRESULT: 0x80040154 ) on an app compiled in x86

$
0
0

This is the block where they check for an installed Adobe reader. If reader 11 is installed, the exception is thrown. If it's reader 10 it works.

 

 

try

                {

                    AxAcroPDFLib.AxAcroPDF acrobat = new AxAcroPDFLib.AxAcroPDF();

                    IntPtr handle = acrobat.Handle;

                    acrobat.Dispose();

                    acrobat = null;

 

                    _isAcrobatPdfAvailable = true;

                }

                catch (Exception ex)

                {

                    _isAcrobatPdfAvailable = false;

                }


Viewing all articles
Browse latest Browse all 10848

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>